fix(config): 适配macOS开发环境,调整文件路径、端口与Node高版本兼容

This commit is contained in:
wangzhibiao committed 2026-09-13 23:16:41 +08:00
1 parent 9d053bf41f
commit bd51fe1f06
5 files changed
+48 -4

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
# macOS 系统临时文件
.DS_Store
**/.DS_Store
# 构建产物
target/
**/target/
build/
**/build/
dist/
**/dist/
# 依赖包
node_modules/
**/node_modules/
**/node_modules1/
**/node_modules2/
# 日志与运行时临时文件
logs/
**/logs/
*.log
backend.log
uploadPath/
**/uploadPath/
# Windows 路径兼容残留目录
**/D:/
# Office 临时文件
.~*.docx
.~*.xlsx
# IDE 配置
.idea/
*.iml
.vscode/
@@ -7,7 +7,7 @@ ruoyi:
# 版权年份
copyrightYear: 2026
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
profile: D:/ruoyi/uploadPath
profile: ./uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="log.path" value="/home/ruoyi/logs" />
<property name="log.path" value="./logs" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
+1 -1
View File
@@ -73,7 +73,7 @@ export default {
codeUrl: "",
loginForm: {
username: "admin",
password: "Sict@123",
password: "admin123",
rememberMe: false,
code: "",
uuid: ""
+8 -1
View File
@@ -1,4 +1,11 @@
'use strict'
const crypto = require('crypto')
try {
crypto.createHash('md4')
} catch (e) {
const origCreateHash = crypto.createHash
crypto.createHash = (alg, opts) => origCreateHash(alg === 'md4' ? 'sha256' : alg, opts)
}
const path = require('path')
function resolve(dir) {
@@ -7,7 +14,7 @@ function resolve(dir) {
const name = process.env.VUE_APP_TITLE || '智慧培训管理平台' // 网页标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口
const port = process.env.port || process.env.npm_config_port || 8080 // 端口
const { VueLoaderPlugin } = require('vue-loader')
// vue.config.js 配置说明
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions