fix: 兼容代码报错

develop
时启龙 2024-08-29 14:42:17 +08:00
parent a5c07be72c
commit a5ce88f887
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export default {
iframeUrl() { iframeUrl() {
const params = { const params = {
token: getToken(), token: getToken(),
...this.$route.query ...(this.$route.query || {})
} }
const url = addParamsToUrl(this.$route.meta.url, params) const url = addParamsToUrl(this.$route.meta.url, params)
return url.toString() return url.toString()

View File

@ -21,7 +21,7 @@ export default {
iframeUrl() { iframeUrl() {
const params = { const params = {
token: getToken(), token: getToken(),
...this.$route.query ...(this.$route.query || {})
} }
const url = addParamsToUrl(this.$route.meta.url, params) const url = addParamsToUrl(this.$route.meta.url, params)
return url.toString() return url.toString()