feat(l2): 添加多环境配置及国际化支持
- 新增klp和g30环境配置文件 - 添加vue-i18n实现中英文切换 - 更新package.json添加环境组相关脚本 - 修改vue.config.js支持多环境配置加载
This commit is contained in:
@@ -9,7 +9,13 @@
|
||||
"stage": "vue-cli-service serve --mode staging",
|
||||
"build:prod": "vue-cli-service build",
|
||||
"build:stage": "vue-cli-service build --mode staging",
|
||||
"preview": "node build/index.js --preview"
|
||||
"preview": "node build/index.js --preview",
|
||||
"klp:dev": "cross-env ENV_GROUP=klp ENV_MODE=development vue-cli-service serve",
|
||||
"klp:stage": "cross-env ENV_GROUP=klp ENV_MODE=staging vue-cli-service serve",
|
||||
"klp:build": "cross-env ENV_GROUP=klp ENV_MODE=production vue-cli-service build",
|
||||
"g30:dev": "cross-env ENV_GROUP=g30 ENV_MODE=development vue-cli-service serve",
|
||||
"g30:stage": "cross-env ENV_GROUP=g30 ENV_MODE=staging vue-cli-service serve",
|
||||
"g30:build": "cross-env ENV_GROUP=g30 ENV_MODE=production vue-cli-service build"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
@@ -25,10 +31,12 @@
|
||||
"url": "https://gitee.com/y_project/RuoYi-Vue.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@klp/ruoyi": "workspace:^1.0.0",
|
||||
"@riophae/vue-treeselect": "0.4.0",
|
||||
"axios": "0.28.1",
|
||||
"clipboard": "2.0.8",
|
||||
"core-js": "3.37.1",
|
||||
"cross-env": "^10.1.0",
|
||||
"dayjs": "^1.11.18",
|
||||
"echarts": "5.4.0",
|
||||
"element-ui": "2.15.14",
|
||||
@@ -48,12 +56,12 @@
|
||||
"vue": "2.6.12",
|
||||
"vue-count-to": "1.0.13",
|
||||
"vue-cropper": "0.5.5",
|
||||
"vue-i18n": "8.x",
|
||||
"vue-konva": "^2.1.7",
|
||||
"vue-router": "3.4.9",
|
||||
"vuedraggable": "2.24.3",
|
||||
"vuex": "3.6.0",
|
||||
"xlsx": "^0.18.5",
|
||||
"@klp/ruoyi": "workspace:^1.0.0"
|
||||
"xlsx": "^0.18.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "4.4.6",
|
||||
@@ -62,6 +70,7 @@
|
||||
"chalk": "4.1.0",
|
||||
"compression-webpack-plugin": "6.1.2",
|
||||
"connect": "3.6.6",
|
||||
"dotenv": "^17.2.3",
|
||||
"sass": "1.32.13",
|
||||
"sass-loader": "10.1.1",
|
||||
"script-ext-html-webpack-plugin": "2.1.5",
|
||||
|
||||
Reference in New Issue
Block a user