清理快手前端无用入口
This commit is contained in:
@@ -1,22 +1,12 @@
|
||||
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: isKuaishouMode ? '/admin/dashboard' : '/tx/browser',
|
||||
},
|
||||
{
|
||||
path: '/tx',
|
||||
redirect: '/tx/browser',
|
||||
},
|
||||
{
|
||||
path: '/tx/browser',
|
||||
component: () => import('@/views/tx/TencentBrowserView.vue'),
|
||||
redirect: '/admin/dashboard',
|
||||
},
|
||||
{
|
||||
path: '/claim/:token',
|
||||
@@ -59,10 +49,6 @@ const router = createRouter({
|
||||
path: 'tasks',
|
||||
component: () => import('@/views/admin/tasks/AdminTasksView.vue'),
|
||||
},
|
||||
{
|
||||
path: 'manual-redeem',
|
||||
component: () => import('@/views/admin/manual-redeem/AdminManualRedeemView.vue'),
|
||||
},
|
||||
{
|
||||
path: 'tasks/:taskId',
|
||||
component: () => import('@/views/admin/tasks/AdminTaskDetailView.vue'),
|
||||
|
||||
Reference in New Issue
Block a user