Browse Source

修复自定义接口

intex
刘忱 2 days ago
parent
commit
988ebad1e8
  1. 26
      src/views/infra/customInterface/index.vue

26
src/views/infra/customInterface/index.vue

@ -1,22 +1,12 @@
<template>
<IFrame :src="src"/>
<ContentWrap>
<IFrame :src="url" style="width: 100%; height: calc(100vh - 180px)" />
</ContentWrap>
</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 = {
// request: {
// beforeSend: function (config) {
// // Cookie
// config.headers.token = getAccessToken() // Token
// return config;
// }
// },
// getMagicTokenValue: function () {
// var token = getAccessToken(); // token
// return token;
// }
// }
<script setup lang="ts">
import { getInterfaceUrl } from '@/utils/systemParam'
const route = useRoute() //
const str = route.path.split('/')[3]
const url = ref(getInterfaceUrl())
</script>

Loading…
Cancel
Save