test: 无界降级测试加载渲染器
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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