feat(frontend): 更新依赖和路由配置

- 更新 npm 依赖 (package.json)
- 更新路由配置 (router/index.js)
- 更新 Vite 构建配置 (vite.config.js)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Developer
2026-03-17 17:30:21 +08:00
parent 47d1da7cea
commit 5f56eec248
4 changed files with 975 additions and 12 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -8,17 +8,21 @@
"preview": "vite preview"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.0",
"@vueuse/core": "^11.0.0",
"axios": "^1.7.0",
"element-plus": "^2.8.0",
"pinia": "^2.2.0",
"vue": "^3.5.0",
"vue-router": "^4.4.0",
"pinia": "^2.2.0",
"element-plus": "^2.8.0",
"@element-plus/icons-vue": "^2.3.0",
"axios": "^1.7.0",
"@vueuse/core": "^11.0.0",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.0",
"vite": "^6.0.0"
"@vitejs/plugin-vue": "^5.2.4",
"sass": "^1.77.0",
"sass-embedded": "^1.98.0",
"typescript": "^5.9.3",
"vite": "^6.0.0",
"vue-tsc": "^3.2.5"
}
}

View File

@@ -48,9 +48,9 @@ const routes = [
]
},
{
path: '/playground',
name: 'Playground',
component: () => import('@/views/PlaygroundView.vue')
path: '/models',
name: 'ModelSettings',
component: () => import('@/views/ModelSettingsView.vue')
},
{
path: '/data-square',

View File

@@ -10,6 +10,7 @@ export default defineConfig({
}
},
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {
@@ -17,5 +18,8 @@ export default defineConfig({
changeOrigin: true
}
}
},
build: {
assetsDir: 'assets'
}
})