Ver código fonte

授权登录修改

duy 5 dias atrás
pai
commit
81959dadfb
1 arquivos alterados com 3 adições e 1 exclusões
  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