feat: 搭建后台管理端
- 初始化 Vue 3 + TypeScript + Vite 管理端工程 - 增加登录、租户、组织、用户、名片与系统页面 - 补充路由、状态管理、接口封装与基础样式体系
This commit is contained in:
35
frontend_admin/vite.config.ts
Normal file
35
frontend_admin/vite.config.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
base: '/card/',
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
vue: ['vue', 'vue-router', 'pinia'],
|
||||
elementPlus: ['element-plus', '@element-plus/icons-vue'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/card/api': {
|
||||
target: 'http://127.0.0.1:8112',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/card/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user