Procházet zdrojové kódy

认证重定向问题

yuanmingze před 2 měsíci
rodič
revize
92957a9ec7

+ 3 - 1
src/hooks/useInvoice.ts

@@ -97,7 +97,9 @@ export function useInvoice() {
     // 5. 失败后统一处理 —— 判断当前页面是否需要跳转
     if (route.path !== '/h5/invoice-information/index') {
       setTimeout(() => {
-        router.replace('/invoice-information/index')
+        router.replace({
+          path: '/invoice-information',
+        })
       }, 1800)
     }
   }

+ 3 - 1
src/views/pedding-face-recognition/index.vue

@@ -56,7 +56,9 @@ const getFaceAuthResult = async () => {
   }
 
   setTimeout(() => {
-    router.replace('/invoice-information/index')
+    router.replace({
+      path: '/invoice-information',
+    })
   }, 1800)
 }