feat: 布局面板基础结构
This commit is contained in:
1 parent
084526a350
commit
53e0d70679
8 files changed
+85
-12
No files matched your search
@@ -1,13 +1,29 @@
|
||||
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' }
|
||||
{ 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({
|
||||
|
||||
Reference in new issue
Block a user