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> <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…
Cancel
Save