From 5ed1c9a9bf412c8b70851e9899b5e00f9eea68c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Tue, 8 Aug 2023 09:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BA=86=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 +-- src/App.vue | 10 +++++- src/api/external/index.js | 1 + .../productsMsg/components/productInfo.vue | 35 +++++++++++-------- vue.config.js | 2 +- 5 files changed, 34 insertions(+), 18 deletions(-) diff --git a/.env.production b/.env.production index c6adc7d..6e1379e 100644 --- a/.env.production +++ b/.env.production @@ -5,11 +5,11 @@ VUE_APP_TITLE = 产品档案管理系统 ENV = 'production' # 检查员管理系统/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '/ggfw-api' #外网(部署104、105服务器) # VUE_APP_BASE_API2 = '/api/inspector/inspector' -VUE_APP_BASE_API2 = :9026/inspector +VUE_APP_BASE_API2 = '/ggfw-api' #调用外部接口 VUE_APP_BASE_API3 = '/api/admin' #本地文件下载路径 diff --git a/src/App.vue b/src/App.vue index e644922..62d4fc2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,7 +24,15 @@ export default { }; }, mounted(){ - + /* + sudo mv html.zip /usr/share/nginx/html/ggfw-dangan 在 MSSM-Dev 文件夹下 移动压缩包到 ggfw文件夹下 + + cd /usr/share/nginx/html/ggfw-dangan 移动到文件夹下 + + unzip html.zip -d . 解压 + + rm ./html.zip 删除当前目录下的压缩包 弹出确定删除 打 y 并回车 + */ } }; diff --git a/src/api/external/index.js b/src/api/external/index.js index 6e7df23..527f619 100644 --- a/src/api/external/index.js +++ b/src/api/external/index.js @@ -3,6 +3,7 @@ import request from "@/utils/request"; //获取用户信息 export function getselfInfo() { return request({ + baseURL: location.origin, url: "/api/admin/user/getSelfInfo", method: "GET", }); diff --git a/src/views/productsMsg/components/productInfo.vue b/src/views/productsMsg/components/productInfo.vue index 8c767e4..1aa5fce 100644 --- a/src/views/productsMsg/components/productInfo.vue +++ b/src/views/productsMsg/components/productInfo.vue @@ -2,33 +2,40 @@
- +