fix(login): fix the problem of successful login and notify disappearing

This commit is contained in:
vben
2020-12-11 22:08:36 +08:00
parent 0daca28362
commit 0434030f27
3 changed files with 9 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ class User extends VuexModule {
// const name = FULL_PAGE_NOT_FOUND_ROUTE.name;
// name && router.removeRoute(name);
goHome && router.replace(PageEnum.BASE_HOME);
goHome && (await router.replace(PageEnum.BASE_HOME));
return userInfo;
} catch (error) {
return null;

View File

@@ -99,6 +99,7 @@
password: '123456',
// verify: undefined,
});
const formState = reactive({
loading: false,
});