浏览代码

配置文件

zhuliu 3 年之前
父节点
当前提交
c021f3dea7
共有 2 个文件被更改,包括 11 次插入3 次删除
  1. 1 1
      RMS-FrontEnd/src/views/report/components/CreateReport.vue
  2. 10 2
      RMS-FrontEnd/vue.config.js

+ 1 - 1
RMS-FrontEnd/src/views/report/components/CreateReport.vue

@@ -107,7 +107,7 @@ export default {
       }else if(this.form.signPatentNo!=''){//有,且不为空,再判断该专利号是否存在
         // if(this.verify == true){//避免点击确定时再次调用该接口
           this.$api.PatentByPatentNo({patentNo:this.form.signPatentNo}).then(response=>{
-              if(response.data.length>0){
+              if(Object.keys(response.data).length!=0){
                 this.loading = false
                 callback()
                 this.show = 2

+ 10 - 2
RMS-FrontEnd/vue.config.js

@@ -127,9 +127,17 @@ module.exports = {
           '/api':''
       }
       },
+      '/api/v2': {
+        // target: 'http://192.168.0.57:8879',
+        target: 'http://192.168.1.13:8879',
+        // target: 'http://139.224.24.90:8879',
+
+        ws: true,
+        changeOrigin: true
+      },
       '/report':{
-        // target:'http://192.168.1.13:8885',
-        target:'http://192.168.1.14:8885',
+        target:'http://192.168.1.13:8885',
+        // target:'http://192.168.1.14:8885',
         ws:true,
         changeOrigin:true
       }