feat(dev): add /__dev/session to paste UC JWT + sudo for local browser QA

Production build omits route via import.meta.env.DEV guard.

Made-with: Cursor
This commit is contained in:
2026-04-26 16:08:59 +08:00
parent 9dff5a04b6
commit f5451f97f7
2 changed files with 69 additions and 0 deletions
+9
View File
@@ -249,5 +249,14 @@ export default [
props: ({query}: RouteQueryAndHash) => ({params: query})
},
{path: '/user-settings', component: UserSettings, meta: {title: "个性化设置"}},
...(import.meta.env.DEV
? [
{
path: '/__dev/session',
component: () => import('~/pages/dev/SessionSeed.vue'),
meta: {title: 'Dev 会话'},
},
]
: []),
{path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound, meta: {title: "404"}},
]