test: 定位渲染样式异常
This commit is contained in:
parent
2d787ac9f1
commit
1019afc24c
@ -8,6 +8,11 @@ import { ElLoading, ElMessage } from 'element-plus';
|
||||
|
||||
import { LowCodeService } from './service';
|
||||
|
||||
// 解析 url 参数
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const fileId = urlParams.get('fileId');
|
||||
const projectId = urlParams.get('projectId');
|
||||
|
||||
// 定义 wujie props 的类型
|
||||
interface WujieProps {
|
||||
accessToken?: string;
|
||||
@ -19,7 +24,10 @@ interface WujieProps {
|
||||
}
|
||||
|
||||
// 从 wujie props 获取数据,提供默认值
|
||||
const wujieProps: WujieProps = window.$wujie?.props || {};
|
||||
const wujieProps: WujieProps = window.$wujie?.props || {
|
||||
fileId,
|
||||
projectId,
|
||||
};
|
||||
console.log('wujie props:', wujieProps);
|
||||
|
||||
// 文件加载时,清空一次 sessionStorage
|
||||
|
Loading…
x
Reference in New Issue
Block a user