mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-05 18:39:06 +08:00
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
import { createWebHistory, createRouter } from 'vue-router'
|
|
import Dashboard from '../components/Dashboard.vue';
|
|
import BasicInfo from '../pages/BasicInfo.vue';
|
|
import AboutUs from '../pages/AboutUs.vue';
|
|
import LogView from '../pages/Log.vue';
|
|
import NetWork from '../pages/NetWork.vue';
|
|
import QQLogin from '../components/QQLogin.vue';
|
|
import WebUiLogin from '../components/WebUiLogin.vue';
|
|
import OtherConfig from '../pages/OtherConfig.vue';
|
|
const routes = [
|
|
{ path: '/', redirect: '/webui' },
|
|
{ path: '/webui', component: WebUiLogin, name: 'WebUiLogin' },
|
|
{ path: '/qqlogin', component: QQLogin, name: 'QQLogin' },
|
|
{
|
|
path: '/dashboard',
|
|
component: Dashboard,
|
|
name: 'Dashboard',
|
|
children: [
|
|
{ path: '', redirect: 'basic-info' },
|
|
{ path: 'basic-info', component: BasicInfo, name: 'BasicInfo' },
|
|
{ path: 'network-config', component: NetWork, name: 'NetWork' },
|
|
{ path: 'log-view', component: LogView, name: 'LogView' },
|
|
{ path: 'other-config', component: OtherConfig, name: 'OtherConfig' },
|
|
{ path: 'about-us', component: AboutUs, name: 'AboutUs' }
|
|
]
|
|
}
|
|
]
|
|
|
|
export const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
}) |