test: 无界降级测试加载渲染器
This commit is contained in:
@@ -9,9 +9,6 @@ import Postmate from 'postmate';
|
||||
|
||||
import { LowCodeService } from './service';
|
||||
|
||||
const test = window.$wujie?.props; // {data: xxx, methods: xxx}
|
||||
console.log('test', test);
|
||||
|
||||
// 文件加载时,清空一次 sessionStorage
|
||||
sessionStorage.clear();
|
||||
|
||||
@@ -24,6 +21,7 @@ const accessToken = ref('');
|
||||
const urlParams = ref(parseUrlParams());
|
||||
const provider = ref(null);
|
||||
|
||||
// 从 URL 解析参数
|
||||
function parseUrlParams() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const params = {
|
||||
|
||||
@@ -130,7 +130,7 @@ onMounted(async () => {
|
||||
|
||||
<template>
|
||||
<div style="padding: 20px">
|
||||
<component :is="renderer" v-if="renderer" />
|
||||
<component :is="renderer" v-if="renderer" :wujie-props="wujieProps" />
|
||||
<div
|
||||
v-else-if="!isLoading"
|
||||
style="margin-top: 50px; color: red; text-align: center"
|
||||
|
||||
Reference in New Issue
Block a user