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 @@