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

@@ -30,8 +30,8 @@ VITE_PORT=10010
VITE_DEBUG_MODE = true
VITE_PLATFORM_URL = 'https://localhost:10010/'
VITE_DESIGNER_URL = 'https://localhost:10011/'
VITE_RENDERER_URL = 'https://localhost:10012/'
VITE_V1_URL = 'https://localhost:10013/'
VITE_PLATFORM_URL = 'https://localhost:10010'
VITE_DESIGNER_URL = 'https://localhost:10011'
VITE_RENDERER_URL = 'https://localhost:10012'
VITE_V1_URL = 'https://localhost:10013'

View File

@@ -11,7 +11,7 @@ VITE_DEBUG_MODE = true
VITE_PORT=10010
VITE_PLATFORM_URL = 'https://localhost:10010/'
VITE_DESIGNER_URL = 'https://localhost:10011/'
VITE_RENDERER_URL = 'https://localhost:10012/'
VITE_V1_URL = 'https://localhost:10013/'
VITE_PLATFORM_URL = 'https://localhost:10010'
VITE_DESIGNER_URL = 'https://localhost:10011'
VITE_RENDERER_URL = 'https://localhost:10012'
VITE_V1_URL = 'https://localhost:10013'

View File

@@ -26,7 +26,7 @@ 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_V1_URL = 'https://localhost:10013/'
VITE_PLATFORM_URL = 'https://localhost:10010'
VITE_DESIGNER_URL = 'https://localhost:10011'
VITE_RENDERER_URL = 'https://localhost:10012'
VITE_V1_URL = 'https://localhost:10013'

View File

@@ -2,8 +2,6 @@ import type { RouteRecordRaw } from 'vue-router';
import WujieVueRendererAdapter from '@sy/wujie-vue3-renderer-adapter';
import { VITE_RENDERER_URL } from '#/constants';
const routes: RouteRecordRaw[] = [
{
path: '/static-file',
@@ -24,12 +22,15 @@ const routes: RouteRecordRaw[] = [
title: '静态文件列表',
},
props: {
// url: `${VITE_RENDERER_URL}/?fileId=7pfr394d6&projectId=4`,
url: `${VITE_RENDERER_URL}`,
accessToken: localStorage.getItem('y-code-access-token'),
url: `${VITE_RENDERER_URL}?fileId=7pfr394d6&projectId=4`,
// url: `${VITE_RENDERER_URL}`,
// accessToken: localStorage.getItem('y-code-access-token'),
fileId: '7pfr394d6',
projectId: '4',
name: 'y-code-renderer',
name: 'StaticFileList',
sync: true,
degrade: true,
// url: 'https://react.dev/',
},
},
],