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

@@ -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/',
},
},
],