소스 검색

日常开发

林旭祥 8 달 전
부모
커밋
953220aa9d
2개의 변경된 파일13개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 0
      src/types/auto-imports.d.ts
  2. 5 2
      src/views/gesture/index.vue

+ 8 - 0
src/types/auto-imports.d.ts

@@ -296,6 +296,10 @@ declare module 'vue' {
   interface GlobalComponents {}
   interface ComponentCustomProperties {
     readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
+    readonly ElLoading: UnwrapRef<typeof import('element-plus/es')['ElLoading']>
+    readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
+    readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
+    readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>
     readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
     readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
     readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
@@ -575,6 +579,10 @@ declare module '@vue/runtime-core' {
   interface GlobalComponents {}
   interface ComponentCustomProperties {
     readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
+    readonly ElLoading: UnwrapRef<typeof import('element-plus/es')['ElLoading']>
+    readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
+    readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
+    readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>
     readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
     readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
     readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>

+ 5 - 2
src/views/gesture/index.vue

@@ -219,7 +219,9 @@ const getTips = () => {
   }, myTime)
 };
 
-//获取个人信息
+/**
+ * 获取个人信息
+*/
 const getUserInfo = () => {
   let userInfo = localStorage.getItem("userInfo") || '';
   if (userInfo) {
@@ -288,6 +290,7 @@ onBeforeMount(() => {
       device_info.value = e.device_info;
       let handcontroller_id = device_info.value.handcontroller_id;
       startHand(handcontroller_id);
+      getInitExam()
       getTips();
     }
     //左滑动
@@ -312,7 +315,7 @@ onBeforeMount(() => {
   });
 })
 onMounted(() => {
-  getInitExam();
+  // getInitExam();
   getUserInfo();
   //登录码
   getErweima();