【功能优化】积木报表:使用 refreshToken 认证,解决无法刷新访问令牌的问题

pull/452/MERGE
YunaiV 2024-10-02 14:15:13 +08:00
parent 86c33e1f68
commit 2d245d1fe7
1 changed files with 3 additions and 2 deletions

View File

@ -6,9 +6,10 @@
</ContentWrap>
</template>
<script lang="ts" setup>
import { getAccessToken } from '@/utils/auth'
import { getRefreshToken } from '@/utils/auth'
defineOptions({ name: 'JimuReport' })
const src = ref(import.meta.env.VITE_BASE_URL + '/jmreport/list?token=' + getAccessToken())
// 使 getRefreshToken() 使 getAccessToken() 便访
const src = ref(import.meta.env.VITE_BASE_URL + '/jmreport/list?token=' + getRefreshToken())
</script>