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
+1 -1
View File
@@ -2,7 +2,7 @@
VITE_APP_TITLE=芋道管理系统
# 应用命名空间,用于缓存、store等功能的前缀,确保隔离
VITE_APP_NAMESPACE=yudao-vben-antd
VITE_APP_NAMESPACE=yudao-vben-naive
# 对store进行加密的密钥,在将store持久化到localStorage时会使用该密钥进行加密
VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key
+3 -3
View File
@@ -6,11 +6,11 @@ export default defineConfig(async () => {
vite: {
server: {
proxy: {
'/api': {
'/admin-api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
rewrite: (path) => path.replace(/^\/admin-api/, ''),
// mock代理目标地址
target: 'http://localhost:5320/api',
target: 'http://localhost:48080/admin-api',
ws: true,
},
},