refactor: 移除测试相关代码及组件

fix(websocket): 禁用所有Toast提示以优化用户体验

删除开发环境下的测试路由、页面及组件,清理不再使用的代码。同时修改websocket模块,移除所有Toast提示以避免干扰用户操作。
This commit is contained in:
超级老白兔
2025-09-11 17:23:47 +08:00
parent dd2f58dc78
commit 1e34ecffc2
8 changed files with 19 additions and 1418 deletions

View File

@@ -1,39 +0,0 @@
import SelectTest from "@/pages/mobile/test/select";
import TestIndex from "@/pages/mobile/test/index";
import UploadTest from "@/pages/mobile/test/upload";
import UpdateNotificationTest from "@/pages/mobile/test/update-notification";
import IframeDebugPage from "@/pages/iframe";
import { DEV_FEATURES } from "@/utils/env";
// 只在开发环境启用测试路由
const componentTestRoutes = DEV_FEATURES.SHOW_TEST_PAGES
? [
{
path: "/test",
element: <TestIndex />,
auth: true,
},
{
path: "/test/select",
element: <SelectTest />,
auth: true,
},
{
path: "/test/upload",
element: <UploadTest />,
auth: true,
},
{
path: "/test/update-notification",
element: <UpdateNotificationTest />,
auth: true,
},
{
path: "/test/iframe",
element: <IframeDebugPage />,
auth: false, // 不需要认证,方便调试
},
]
: [];
export default componentTestRoutes;