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

This commit is contained in:
YunaiV
2025-05-03 11:53:24 +08:00
parent dcecde0967
commit 42c99639b9

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>