|
@@ -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
|