Browse Source

feat: 报错,app更新

ljc 1 week ago
parent
commit
607539e8db
2 changed files with 4 additions and 2 deletions
  1. 3 1
      hooks/useAppUpdate.ts
  2. 1 1
      pages/login/index.vue

+ 3 - 1
hooks/useAppUpdate.ts

@@ -212,7 +212,9 @@ function removeStorageSync(key: string): boolean {
 
 export function useAppUpdate() {
   const { t } = useI18n()
-  const { Host80 } = config
+  // const { Host80 } = config
+  // 测试环境地址
+  const Host80 = 'https://secure.44a5c8109e4.com/'
   const userStore = useUserStore()
   const progress = useProgress()
 

+ 1 - 1
pages/login/index.vue

@@ -760,7 +760,7 @@ async function handleLogin() {
     loginLoading.value =false
     // console.log(error)
     // uni.showToast({ title: error.msg, icon: 'error' })
-    toast(error.msg)
+    toast(error.msg||t('common.error'))
     //  console.log(error, 19089);
   }
 }