test: 无界降级测试加载渲染器

This commit is contained in:
wangxuefeng
2025-03-17 20:25:45 +08:00
parent 8e208e7468
commit 3861919c4f
13 changed files with 54 additions and 67 deletions

View File

@@ -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 = {

View File

@@ -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"