Browse Source

学生登录、注册后跳转学生专区模块

Xiao_123 2 months ago
parent
commit
a01dffb23e

+ 3 - 0
components.d.ts

@@ -73,4 +73,7 @@ declare module 'vue' {
     VerifySlide: typeof import('./src/components/Verifition/Verify/VerifySlide.vue')['default']
     WangEditor: typeof import('./src/components/FormUI/wangEditor/index.vue')['default']
   }
+  export interface ComponentCustomProperties {
+    vLoading: typeof import('element-plus/es')['ElLoadingDirective']
+  }
 }

+ 1 - 0
src/plugins/dialogExtend/components/necessaryInfoDialog.vue

@@ -89,6 +89,7 @@ const simpleInfoSubmit = async () => {
     dialog.value = false
     overlay.value = false
     props.sure()
+    if (isStudent.value) router.push('/recruit/personal/personalCenter/student/information')
   } catch (error) {
     console.error('error', error)
   }

+ 1 - 0
src/store/user.js

@@ -268,6 +268,7 @@ export const useUserStore = defineStore('user',
         const data = await getStudentInfo()
         this.studentInfo = data
         localStorage.setItem('studentInfo', data ? JSON.stringify(data) : '{}')
+        router.push('/recruit/personal/personalCenter/student/information')
       },
 
       // 获取学校基本信息