mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
refactor: 代码解耦合,完善WebUI功能,添加网页VNC
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import Antd from 'ant-design-vue';
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import App from './App.vue'
|
||||
import 'ant-design-vue/dist/reset.css';
|
||||
|
||||
const routes = [
|
||||
{ path: '/', component: () => import('@/components/dash.vue') },
|
||||
{ path: '/settings/server', component: () => import('@/components/settings/server.vue') },
|
||||
{ path: '/settings/workers', component: () => import('@/components/settings/workers.vue') },
|
||||
{ path: '/settings/browser', component: () => import('@/components/settings/browser.vue') },
|
||||
{ path: '/settings/adapters', component: () => import('@/components/settings/adapters.vue') },
|
||||
{ path: '/tools/display', component: () => import('@/components/tools/display.vue') },
|
||||
{ path: '/tools/cache', component: () => import('@/components/tools/cache.vue') },
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
const pinia = createPinia()
|
||||
const app = createApp(App);
|
||||
app.use(pinia)
|
||||
app.use(router)
|
||||
app.use(Antd)
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user