Skip to content

Commit

Permalink
Merge pull request #1205 from mngma/main
Browse files Browse the repository at this point in the history
避免页面加载后立即触发一次验证,页面出现一片红色的警告的情况
  • Loading branch information
奇淼(piexlmax authored Aug 24, 2022
2 parents b17157f + 23b7057 commit 4829503
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/pinia/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const useUserStore = defineStore('user', () => {
asyncRouters.forEach(asyncRouter => {
router.addRoute(asyncRouter)
})
router.push({ name: userInfo.value.authority.defaultRouter })
await router.push({ name: userInfo.value.authority.defaultRouter })
loadingInstance.value.close()
return true
}
Expand Down
1 change: 1 addition & 0 deletions web/src/view/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
ref="loginForm"
:model="loginFormData"
:rules="rules"
:validate-on-rule-change="false"
@keyup.enter="submitForm"
>
<el-form-item prop="username">
Expand Down

0 comments on commit 4829503

Please sign in to comment.