diff --git a/QMPlusServer/model/dbModel/exampleForm.go b/QMPlusServer/model/dbModel/exampleForm.go deleted file mode 100644 index 8ac9dfb2..00000000 --- a/QMPlusServer/model/dbModel/exampleForm.go +++ /dev/null @@ -1,6 +0,0 @@ -package dbModel - -type ExampleForm struct { - Name string `json:"name"` -} - diff --git a/QMPlusServer/model/dbModel/exampleTable.go b/QMPlusServer/model/dbModel/exampleTable.go deleted file mode 100644 index 9a3a2dc2..00000000 --- a/QMPlusServer/model/dbModel/exampleTable.go +++ /dev/null @@ -1 +0,0 @@ -package dbModel diff --git a/QMPlusVuePage/src/store/module/user.js b/QMPlusVuePage/src/store/module/user.js index 34e8e6de..e862868d 100644 --- a/QMPlusVuePage/src/store/module/user.js +++ b/QMPlusVuePage/src/store/module/user.js @@ -38,12 +38,13 @@ export const user = { } }, actions: { - async LoginIn({ commit }, loginInfo) { + async LoginIn({ commit, dispatch }, loginInfo) { const res = await login(loginInfo) commit('setUserInfo', res.data.user) commit('setToken', res.data.token) commit('setExpiresAt', res.data.expiresAt) if (res.success) { + await dispatch("SetAsyncRouter") const redirect = router.history.current.query.redirect if (redirect) { router.push({ path: redirect, replace: true }) diff --git a/QMPlusVuePage/src/view/example/form/form.vue b/QMPlusVuePage/src/view/example/form/form.vue index b8d935c8..d01629d9 100644 --- a/QMPlusVuePage/src/view/example/form/form.vue +++ b/QMPlusVuePage/src/view/example/form/form.vue @@ -1,103 +1,110 @@ - - - - - - - - - - - - - - - - —— - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 立即创建 - 取消 - - - + + + + + + + + + + + + + + + + —— + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 立即创建 + 取消 + + + \ No newline at end of file