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

@@ -10,6 +10,6 @@ VITE_DEBUG_MODE = true
VITE_PORT = 10012
VITE_PLATFORM_URL = 'https://localhost:10010/'
VITE_DESIGNER_URL = 'https://localhost:10011/'
VITE_RENDERER_URL = 'https://localhost:10012/'
VITE_PLATFORM_URL = 'https://localhost:10010'
VITE_DESIGNER_URL = 'https://localhost:10011'
VITE_RENDERER_URL = 'https://localhost:10012'

View File

@@ -11,6 +11,6 @@ VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
VITE_DEBUG_MODE = true
VITE_PLATFORM_URL = 'https://localhost:10010/'
VITE_DESIGNER_URL = 'https://localhost:10011/'
VITE_RENDERER_URL = 'https://localhost:10012/'
VITE_PLATFORM_URL = 'https://localhost:10010'
VITE_DESIGNER_URL = 'https://localhost:10011'
VITE_RENDERER_URL = 'https://localhost:10012'

View File

@@ -11,6 +11,6 @@ VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/'
VITE_DEBUG_MODE = true
VITE_PLATFORM_URL = 'https://localhost:10010/'
VITE_DESIGNER_URL = 'https://localhost:10011/'
VITE_RENDERER_URL = 'https://localhost:10012/'
VITE_PLATFORM_URL = 'https://localhost:10010'
VITE_DESIGNER_URL = 'https://localhost:10011'
VITE_RENDERER_URL = 'https://localhost:10012'

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"