fix: 基础监控 日志管理 增加跳转 token

develop
时启龙 2024-08-22 11:31:51 +08:00
parent 5618c1782a
commit fbbf3b9621
2 changed files with 8 additions and 2 deletions

View File

@ -5,6 +5,7 @@
</template> </template>
<script> <script>
import { getToken } from '@cmp/cmp-element'
export default { export default {
data() { data() {
return {} return {}
@ -12,7 +13,9 @@ export default {
methods: {}, methods: {},
computed: { computed: {
iframeUrl() { iframeUrl() {
return this.$route.meta.url const url = new URL(this.$route.meta.url)
url.searchParams.append('token', getToken())
return url.toString()
} }
} }
} }

View File

@ -5,6 +5,7 @@
</template> </template>
<script> <script>
import { getToken } from '@cmp/cmp-element'
export default { export default {
data() { data() {
return {} return {}
@ -12,7 +13,9 @@ export default {
methods: {}, methods: {},
computed: { computed: {
iframeUrl() { iframeUrl() {
return this.$route.meta.url const url = new URL(this.$route.meta.url)
url.searchParams.append('token', getToken())
return url.toString()
} }
} }
} }