diff --git a/sgzb-ui/.env.production-nw b/sgzb-ui/.env.production-nw new file mode 100644 index 00000000..b43eed8f --- /dev/null +++ b/sgzb-ui/.env.production-nw @@ -0,0 +1,10 @@ +# 南网系统配置 + +# 页面标题 +VUE_APP_TITLE = 施工装备管理系统 + +# 生产环境配置 +ENV = 'production-nw' + +# 若依管理系统/生产环境 +VUE_APP_BASE_API = '/gl/dev-api' diff --git a/sgzb-ui/package.json b/sgzb-ui/package.json index 2a39c062..72002b96 100644 --- a/sgzb-ui/package.json +++ b/sgzb-ui/package.json @@ -5,9 +5,10 @@ "author": "机具", "license": "MIT", "scripts": { - "dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", - "build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", + "dev": "vue-cli-service serve", + "build": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", + "build:prod-nw": "vue-cli-service build --mode production-nw", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" }, diff --git a/sgzb-ui/src/layout/components/Navbar.vue b/sgzb-ui/src/layout/components/Navbar.vue index 6ee018f6..08de724b 100644 --- a/sgzb-ui/src/layout/components/Navbar.vue +++ b/sgzb-ui/src/layout/components/Navbar.vue @@ -1,34 +1,37 @@