Sfoglia il codice sorgente

修改查看图片地址

zhuliu 2 anni fa
parent
commit
8a4ed8fa2d

+ 1 - 0
RMS-FrontEnd/src/config/index.js

@@ -2,4 +2,5 @@ export default {
     baseURL: "/api",
     host: window.location.host,
     staticURL: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8084' : (process.env.NODE_ENV === 'test'?'http://139.224.24.90:8083':'http://139.224.24.90:8084'),
+    staticURL2: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8081' : 'http://139.224.24.90:8081',
 }

+ 1 - 0
RMS-FrontEnd/src/main.js

@@ -30,6 +30,7 @@ Vue.prototype.$api = api
 // Vue.prototype.$echarts = echarts
 Vue.prototype.$d = formatTableDate
 Vue.prototype.$p = Config.staticURL
+Vue.prototype.$p2 = Config.staticURL2
 Vue.prototype.$c = Config
 Vue.prototype.$s = Storage
 Vue.prototype.$_ = lodash

+ 2 - 2
RMS-FrontEnd/src/views/components/articles/components/mixins.js

@@ -24,13 +24,13 @@ export const commonMixins = {
       if (!url) {
         return ''
       }
-      return this.$p + url
+      return this.$p2 + url
     },
     getImagePath1(patent) {
       if(Object.keys(patent).length==0){
         return ''
       }
-      return this.$p + patent.abstractPath
+      return this.$p2 + patent.abstractPath
       // var cc =  patent.publicNo.substring(0,2)
       // if(cc != 'CN'){
       //   var date = patent.publicDate.replace(/-/g,'')