zhangjie 9 hours ago
parent
commit
888f81e239
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/modules/bootstrap/init-name/index.vue

+ 4 - 1
src/modules/bootstrap/init-name/index.vue

@@ -33,7 +33,10 @@ const { replace } = useRouter()
 
 
 const mainStore = useMainStore()
 const mainStore = useMainStore()
 const needEmployer = ref(false)
 const needEmployer = ref(false)
-const model = reactive<{ name: string; employer: string }>({ name: '', employer: mainStore.loginInfo?.employer || '' })
+const model = reactive<{ name: string; employer: string }>({
+  name: mainStore.loginInfo?.name || '',
+  employer: mainStore.loginInfo?.employer || '',
+})
 
 
 const { formRef, elFormRef } = useForm()
 const { formRef, elFormRef } = useForm()