feat:【报表】增加 GoView 自动登录

pull/87/MERGE
YunaiV 2025-05-03 11:53:24 +08:00
parent dcecde0967
commit 42c99639b9
1 changed files with 6 additions and 1 deletions

View File

@ -2,13 +2,18 @@
import { ref } from 'vue';
import { Page } from '@vben/common-ui';
import { useAccessStore } from '@vben/stores';
import { DocAlert } from '#/components/doc-alert';
import { IFrame } from '#/components/iframe';
defineOptions({ name: 'GoView' });
const src = ref(import.meta.env.VITE_GOVIEW_URL);
const accessStore = useAccessStore();
const src = ref(
`${import.meta.env.VITE_GOVIEW_URL}?accessToken=${accessStore.accessToken}&refreshToken=${accessStore.refreshToken}`,
);
</script>
<template>