When logging in, if we do not have a page, redirect to /
This commit is contained in:
@@ -17,7 +17,7 @@ export const useCreatorProfileStore = defineStore(
|
|||||||
async (newValue) => {
|
async (newValue) => {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
await fetchCreatorProfile();
|
await fetchCreatorProfile();
|
||||||
if (value.value) {
|
if (value.value && value.value.name !== undefined) {
|
||||||
await router.push(`/@${value.value.name}`);
|
await router.push(`/@${value.value.name}`);
|
||||||
} else {
|
} else {
|
||||||
await router.push('/');
|
await router.push('/');
|
||||||
|
|||||||
Reference in New Issue
Block a user