1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| <template>
| <doc-alert title="报表设计器" url="https://doc.iocoder.cn/report/" />
|
| <ContentWrap :bodyStyle="{ padding: '0px' }" class="!mb-0">
| <IFrame :src="src" />
| </ContentWrap>
| </template>
| <script lang="ts" setup>
| import { getRefreshToken } from '@/utils/auth'
|
| defineOptions({ name: 'JimuReport' })
|
| // 使用 getRefreshToken() 方法,而不使用 getAccessToken() 方法的原因:积木报表无法方便的刷新访问令牌
| const src = ref(import.meta.env.VITE_BASE_URL + '/jmreport/list?token=' + getRefreshToken())
| </script>
|
|