|
@@ -43,15 +43,17 @@ const isErrorShow = ref(false)
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
// 域名后加 /#/auth?token=xxxxxxx&account=aaaa×tamp=1670233144838&timeInterval=300&moduleCode=UTF-8
|
|
// 域名后加 /#/auth?token=xxxxxxx&account=aaaa×tamp=1670233144838&timeInterval=300&moduleCode=UTF-8
|
|
// eslint-disable-next-line no-unsafe-optional-chaining
|
|
// eslint-disable-next-line no-unsafe-optional-chaining
|
|
- const { token, account, timestamp, timeInterval, moduleCode } = useRoutes?.query
|
|
|
|
- if (token && account && timestamp && timeInterval && moduleCode) {
|
|
|
|
|
|
+ // const { token, account, timestamp, timeInterval, moduleCode } = useRoutes?.query
|
|
|
|
+ const { token } = useRoutes?.query
|
|
|
|
+ // if (token && account && timestamp && timeInterval && moduleCode) {
|
|
|
|
+ if (token ) {
|
|
isErrorShow.value = false
|
|
isErrorShow.value = false
|
|
loginByTokenApi({
|
|
loginByTokenApi({
|
|
token: token,
|
|
token: token,
|
|
- account: account,
|
|
|
|
- timestamp: timestamp,
|
|
|
|
- timeInterval: timeInterval,
|
|
|
|
- moduleCode: moduleCode,
|
|
|
|
|
|
+ // account: account,
|
|
|
|
+ // timestamp: timestamp,
|
|
|
|
+ // timeInterval: timeInterval,
|
|
|
|
+ // moduleCode: moduleCode,
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
loading.value = false
|
|
loading.value = false
|