拆分快手轻量后端入口
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user