We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c33e1 commit 2d245d1Copy full SHA for 2d245d1
src/views/report/jmreport/index.vue
@@ -6,9 +6,10 @@
6
</ContentWrap>
7
</template>
8
<script lang="ts" setup>
9
-import { getAccessToken } from '@/utils/auth'
+import { getRefreshToken } from '@/utils/auth'
10
11
defineOptions({ name: 'JimuReport' })
12
13
-const src = ref(import.meta.env.VITE_BASE_URL + '/jmreport/list?token=' + getAccessToken())
+// 使用 getRefreshToken() 方法,而不使用 getAccessToken() 方法的原因:积木报表无法方便的刷新访问令牌
14
+const src = ref(import.meta.env.VITE_BASE_URL + '/jmreport/list?token=' + getRefreshToken())
15
</script>
0 commit comments