chore: init naive config

This commit is contained in:
xingyu4j
2025-10-16 11:21:19 +08:00
parent 1f81f07191
commit efc8607848
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
VITE_APP_TITLE=芋道管理系统 VITE_APP_TITLE=芋道管理系统
# 应用命名空间用于缓存、store等功能的前缀确保隔离 # 应用命名空间用于缓存、store等功能的前缀确保隔离
VITE_APP_NAMESPACE=yudao-vben-antd VITE_APP_NAMESPACE=yudao-vben-naive
# 对store进行加密的密钥在将store持久化到localStorage时会使用该密钥进行加密 # 对store进行加密的密钥在将store持久化到localStorage时会使用该密钥进行加密
VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key

View File

@@ -6,11 +6,11 @@ export default defineConfig(async () => {
vite: { vite: {
server: { server: {
proxy: { proxy: {
'/api': { '/admin-api': {
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''), rewrite: (path) => path.replace(/^\/admin-api/, ''),
// mock代理目标地址 // mock代理目标地址
target: 'http://localhost:5320/api', target: 'http://localhost:48080/admin-api',
ws: true, ws: true,
}, },
}, },