mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
50b09ed740
后端: - 新增 SQLite 存储请求/响应历史 (src/utils/history.js) - Admin API 历史查询、删除、媒体重试等端点 - PoolManager.downloadMedia 用于媒体下载 WebUI: - 请求历史页面:筛选、分页、详情、媒体预览 - 请求历史升级为请求模型页面,支持直接发送请求 - 移动端适配与体验优化 - 批量代理设置与删除实例 - 实例配置编辑删除改用 name 匹配
31 lines
1.2 KiB
JavaScript
31 lines
1.2 KiB
JavaScript
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') },
|
|
{ path: '/tools/logs', component: () => import('@/components/tools/logs.vue') },
|
|
{ path: '/tools/request', component: () => import('@/components/tools/request.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')
|