Pārlūkot izejas kodu

授权登录修改

duy 5 dienas atpakaļ
vecāks
revīzija
81959dadfb
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      src/views/home/auth-gfzx.vue

+ 3 - 1
src/views/home/auth-gfzx.vue

@@ -41,7 +41,9 @@ const toUrl = ref('')
 //渲染完成
 onMounted(() => {
     // http://档案的域名/#/auth-token?token=xxx&tid=xxx&pid=xxx&cid=xxx&bg=no&layout=no&url=xxx
-    const { gfzxtoken, tid, pid, cid, bg, layout, url } = getObjValue(useRoutes.query)
+    const { tid, pid, cid, bg, layout, url } = getObjValue(useRoutes.query)
+    const urlQuery = getObjValue(useRoutes.query)
+    const gfzxtoken = urlQuery['gfzx-token'] || ''
     if (!isNullES(gfzxtoken)) {
         isErrorShow.value = false
         toUrl.value = url