소스 검색

授权登录修改

duy 5 일 전
부모
커밋
81959dadfb
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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