Files
hzhub/hzhub-portal-employee/vite.config.mts
大壮 278e507e8a feat: 添加员工门户项目及相关后端改造
- 新增 hzhub-portal-employee 员工门户前端项目(基于 Vue3 + Element Plus)
- 后端登录接口增加返回 nickName 字段
- 移除 KnowledgeInfoController 的 @SaCheckPermission 注解
- 删除 hzhub-portal-company 旧门户项目
- 更新项目文档和架构说明
- 添加后台运行管理脚本(start-all.sh / status-all.sh / stop-all.sh)
- 更新 docker-compose 配置

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 03:47:33 +00:00

52 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import path from 'node:path';
import process from 'node:process';
import { defineConfig, loadEnv } from 'vite';
import plugins from './.build/plugins';
// https://vite.dev/config/
export default defineConfig((cnf) => {
const { mode } = cnf;
const env = loadEnv(mode, process.cwd());
const { VITE_APP_ENV } = env;
return {
base: VITE_APP_ENV === 'production' ? '/' : '/',
plugins: plugins(cnf),
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
css: {
// css全局变量使用@/styles/variable.scss文件
preprocessorOptions: {
scss: {
additionalData: '@use "@/styles/var.scss" as *;',
},
},
},
// 浏览器缓存问题
server: {
host: '0.0.0.0', // 监听所有网络接口
port: 5137, // 端口号
headers: {
'Cache-Control': 'no-store',
},
// 开发代理配置
proxy: {
'/auth': {
target: 'http://localhost:6039',
changeOrigin: true,
},
'/api': {
target: 'http://localhost:6039',
changeOrigin: true,
},
'/system': {
target: 'http://localhost:6039',
changeOrigin: true,
},
},
},
};
});