拆分快手轻量后端入口

This commit is contained in:
yml
2026-05-25 20:42:27 +08:00
parent d58d483944
commit db22ff691b
23 changed files with 1146 additions and 13 deletions
+3 -1
View File
@@ -1,12 +1,14 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { getAdminRole, hasAdminSession } from '@/utils/admin-auth'
const isKuaishouMode = import.meta.env.VITE_APP_MODE === 'kuaishou'
const router = createRouter({
history: createWebHashHistory(),
routes: [
{
path: '/',
redirect: '/tx/browser',
redirect: isKuaishouMode ? '/admin/dashboard' : '/tx/browser',
},
{
path: '/tx',