初始化项目

This commit is contained in:
zouju
2026-02-05 16:09:53 +08:00
parent 4363155c50
commit 0bf9a5da94
8 changed files with 65 additions and 1086 deletions

22
solution-ui/.editorconfig Normal file
View File

@@ -0,0 +1,22 @@
# 告诉EditorConfig插件这是根文件不用继续往上查找
root = true
# 匹配全部文件
[*]
# 设置字符集
charset = utf-8
# 缩进风格可选space、tab
indent_style = space
# 缩进的空格数
indent_size = 2
# 结尾换行符可选lf、cr、crlf
end_of_line = lf
# 在文件结尾插入新行
insert_final_newline = true
# 删除一行中的前后空格
trim_trailing_whitespace = true
# 匹配md结尾的文件
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

View File

@@ -0,0 +1,11 @@
# 页面标题
VUE_APP_TITLE = 自动化管理系统
# 开发环境配置
ENV = 'development'
# 自动化管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@@ -0,0 +1,8 @@
# 页面标题
VUE_APP_TITLE = 自动化管理系统
# 生产环境配置
ENV = 'production'
# 自动化管理系统/生产环境
VUE_APP_BASE_API = '/prod-api'

12
solution-ui/.env.staging Normal file
View File

@@ -0,0 +1,12 @@
# 页面标题
VUE_APP_TITLE = 自动化管理系统
BABEL_ENV = production
NODE_ENV = production
# 测试环境配置
ENV = 'staging'
# 自动化管理系统/测试环境
VUE_APP_BASE_API = '/stage-api'

File diff suppressed because it is too large Load Diff

View File

@@ -11,7 +11,7 @@ const name = process.env.VUE_APP_TITLE || '自动化生成系统' // 网页标
const baseUrl = 'http://localhost:1777' // 后端接口
const port = process.env.port || process.env.npm_config_port || 80 // 端口
const port = process.env.port || process.env.npm_config_port || 1776 // 端口
// vue.config.js 配置说明
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions