From 9854499f5ae1a186bbed7ae1b58b213fc1e5963b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 27 Apr 2023 07:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/public/config.js | 1 + fe/PC/public/version.json | 3 +++ fe/PC/src/api/wms-api.js | 8 ++++++++ fe/PC/src/components/News/index.vue | 5 +++++ fe/PC/src/main.js | 1 - fe/PC/src/permission.js | 2 +- fe/PC/src/utils/request.js | 3 --- fe/PC/src/utils/upDateVersion.js | 29 ++++++++++++++++++++--------- fe/PC/vue.config.js | 6 ------ 9 files changed, 38 insertions(+), 20 deletions(-) create mode 100644 fe/PC/public/version.json diff --git a/fe/PC/public/config.js b/fe/PC/public/config.js index 3a2b1bdb8..a11082d81 100644 --- a/fe/PC/public/config.js +++ b/fe/PC/public/config.js @@ -19,6 +19,7 @@ window.SITE_CONFIG['warehouseCode'] = 'T8' window.SITE_CONFIG['company'] = 'DongYang' window.SITE_CONFIG['client_secret'] = '1q2w3E*' window.SITE_CONFIG['reportsUrl'] = 'http://dev.ccwin-in.com:60074/#/reports/' +window.SITE_CONFIG['versionUrl'] = 'http://dev.ccwin-in.com:60070' // mock // window.SITE_CONFIG['apifoxToken'] = 'NXHNi5mp0dnUHGt0wkCrjvfcidsFKV33' diff --git a/fe/PC/public/version.json b/fe/PC/public/version.json new file mode 100644 index 000000000..8d32f918e --- /dev/null +++ b/fe/PC/public/version.json @@ -0,0 +1,3 @@ +{ + "version": "1.0.6" +} \ No newline at end of file diff --git a/fe/PC/src/api/wms-api.js b/fe/PC/src/api/wms-api.js index 8f8c59486..429cb0759 100644 --- a/fe/PC/src/api/wms-api.js +++ b/fe/PC/src/api/wms-api.js @@ -557,6 +557,14 @@ export function getOneCustomerInfoByCode(code) { method: 'get' }) } + +// 获取版本编号 +export function getVsersion() { + return request({ + url: window.SITE_CONFIG['versionUrl'] + `/version.json?t=${new Date().getTime()}`, + method: 'get' + }) +} // 根据编号获取字典信息 // export function getDictByCode(code) { // return request({ diff --git a/fe/PC/src/components/News/index.vue b/fe/PC/src/components/News/index.vue index eb82e3c80..5f9119752 100644 --- a/fe/PC/src/components/News/index.vue +++ b/fe/PC/src/components/News/index.vue @@ -12,6 +12,7 @@