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:
@@ -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"}},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user