فهرست منبع

学生信息获取

Xiao_123 2 ماه پیش
والد
کامیت
d9cf3fb5d6

+ 1 - 1
src/views/recruit/personal/PersonalCenter/resume/online/components/selfEvaluation.vue

@@ -48,7 +48,7 @@ const getData = async () => {
   emit('complete', { status: Boolean(advantage.value), id: 'selfEvaluation' })
 }
 getData()
-
+ 
 const advantageRules = ref([
   value => {
     if (value) return true

+ 2 - 1
src/views/recruit/personal/PersonalCenter/student/information/index.vue

@@ -177,7 +177,7 @@ const getDepartmentList = async (id, key, type, isRefreshValue = false) => {
 
 // 获取学生基本信息
 const studentInfoFun = async () => {
-  await userStore.getStudentInformation()
+  // await userStore.getStudentInformation()
   const data = JSON.parse(localStorage.getItem('studentInfo') || '{}')
   if (data.schoolId) getDepartmentList(data.schoolId, 'schoolDeptId', 0)
   if (data?.schoolClassId) getDepartmentList(data.schoolDeptId, 'schoolClassId', 2)
@@ -217,6 +217,7 @@ const handleSubmit = async () => {
 
   await saveStudentSimpleInfo(params)
   setTimeout(async () => {
+    await userStore.getStudentInformation()
     studentInfoFun()
     Snackbar.success(t('common.submittedSuccessfully'))
     overlay.value = false