1 changed files with 8 additions and 18 deletions
@ -1,22 +1,12 @@ |
|||||
<template> |
<template> |
||||
<IFrame :src="src"/> |
<ContentWrap> |
||||
|
<IFrame :src="url" style="width: 100%; height: calc(100vh - 180px)" /> |
||||
|
</ContentWrap> |
||||
</template> |
</template> |
||||
<script lang="ts" setup name="CustomInterface"> |
|
||||
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
||||
// import { getAccessToken, getTenantId } from '@/utils/auth' |
|
||||
const src = getJmreportBaseUrl() |
|
||||
|
|
||||
// window.MAGIC_EDITOR_CONFIG = { |
<script setup lang="ts"> |
||||
// request: { |
import { getInterfaceUrl } from '@/utils/systemParam' |
||||
// beforeSend: function (config) { |
const route = useRoute() // 路由对象 |
||||
// // 如果是基于Cookie验证的,此处可以不配。 |
const str = route.path.split('/')[3] |
||||
// config.headers.token = getAccessToken() // 此处自行获取Token |
const url = ref(getInterfaceUrl()) |
||||
// return config; |
|
||||
// } |
|
||||
// }, |
|
||||
// getMagicTokenValue: function () { |
|
||||
// var token = getAccessToken(); // 此处自行获取token |
|
||||
// return token; |
|
||||
// } |
|
||||
// } |
|
||||
</script> |
</script> |
||||
|
Loading…
Reference in new issue