Przeglądaj źródła

⚙️ 修改细节问题

快乐的梦鱼 4 dni temu
rodzic
commit
9abc13f268

+ 3 - 1
src/pages/collect/assessment/evaluation-form.vue

@@ -77,7 +77,7 @@ import { computed, ref } from 'vue';
 import { useSimpleDataLoader } from '@/components/composeabe/loader/SimpleDataLoader';
 import { useAuthStore } from '@/store/auth';
 import { useLoadQuerys } from '@/components/composeabe/LoadQuerys';
-import { ArrayUtils, assertNotNull, formatError } from '@imengyu/imengyu-utils';
+import { ArrayUtils, assertNotNull, formatError, waitTimeOut } from '@imengyu/imengyu-utils';
 import { toast, alert } from '@/components/dialog/CommonRoot';
 import AssessmentContentApi, {
   SelfAssessmentDetail,
@@ -369,6 +369,8 @@ async function downloadForm() {
 }
 
 const loader = useSimpleDataLoader(async () => {
+  await waitTimeOut(1000);
+  
   if (querys.value.id > 0) {
     const detail = await AssessmentContentApi.getSelfAssessmentDetail(querys.value.id);
     currentForm.value = detail;

+ 1 - 1
src/pages/collect/login.vue

@@ -1,8 +1,8 @@
 <template>
   <FlexCol gap="gap.xl" padding="space.lg">
     <FlexCol center>
-      <Text fontConfig="h2">传承人登录</Text>
       <Text fontConfig="subText">欢迎使用非遗数字化资源信息校对系统</Text>
+      <Text fontConfig="subText">技术支持:18649931391</Text>
     </FlexCol>
     <FlexCol radius="radius.md" backgroundColor="white" overflow="hidden">
       <DynamicForm

+ 3 - 1
src/store/auth.ts

@@ -14,7 +14,7 @@ export const useAuthStore = defineStore('auth', {
     expireAt: 0,
     userId: 0,
     userInfo: null as null|UserInfo,
-    loginType: 0,
+    loginType: -1,
   }),
   actions: {
     async loadLoginState() {
@@ -27,6 +27,7 @@ export const useAuthStore = defineStore('auth', {
         this.userId = authInfo.userId;
         this.expireAt = authInfo.expireAt;
         this.userInfo = authInfo.userInfo;
+        this.loginType = authInfo.loginType ?? -1;
         this.shareLoginInfo();
 
         //检查登录是否过期
@@ -91,6 +92,7 @@ export const useAuthStore = defineStore('auth', {
           userId: this.userId ,
           expireAt: this.expireAt,
           userInfo: this.userInfo,
+          loginType: this.loginType,
         }) 
       });
     },