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) => {
|
||||
if (newValue) {
|
||||
await fetchCreatorProfile();
|
||||
if (value.value) {
|
||||
if (value.value && value.value.name !== undefined) {
|
||||
await router.push(`/@${value.value.name}`);
|
||||
} else {
|
||||
await router.push('/');
|
||||
|
||||
Reference in New Issue
Block a user