Browse Source

湖州绕城授权登录

duy 1 day ago
parent
commit
cabe1522f9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/home/auth-gfzx.vue

+ 4 - 4
src/views/home/auth-gfzx.vue

@@ -41,18 +41,18 @@ const toUrl = ref('')
 //渲染完成
 onMounted(() => {
     // http://档案的域名/#/auth-token?token=xxx&tid=xxx&pid=xxx&cid=xxx&bg=no&layout=no&url=xxx
-    const { token, tid, pid, cid, bg, layout, url } = getObjValue(useRoutes.query)
-    if (!isNullES(token)) {
+    const { gfzxtoken, tid, pid, cid, bg, layout, url } = getObjValue(useRoutes.query)
+    if (!isNullES(gfzxtoken)) {
         isErrorShow.value = false
         toUrl.value = url 
         //缓存数据
-        store.setTokenVal(token)
+        store.setTokenVal(gfzxtoken)
         store.setProjectId(pid)
         store.setContractId(cid)
         store.setIsDatavBg(bg !== 'no')
         store.setIsLayout(layout)
         //处理授权登录
-        setLoginByTokenData(token, tid)
+        setLoginByTokenData(gfzxtoken, tid)
     } else {
         loading.value = false
         isErrorShow.value = true