浏览代码

vue.config界面

yxc 2 年之前
父节点
当前提交
547763fb09
共有 2 个文件被更改,包括 21 次插入1 次删除
  1. 10 0
      src/views1/Retrieval/RetrievalView.vue
  2. 11 1
      vue.config.js

+ 10 - 0
src/views1/Retrieval/RetrievalView.vue

@@ -124,6 +124,16 @@
     height: calc(100vh * (670 / 1080));
     background: salmon;
     margin-left: calc(100vw * (230 / 1920));
+    .infinite-list{
+    width: calc(100vw * (1450/ 1920));
+    height: calc(100vh * (670 / 1080));
+    list-style: none;
+    padding: 0;
+    .infinite-list-item{
+    width: calc(100vw * (1450/ 1920));
+    height: calc(100vh * (230 / 1080));
+    }
+    }
   }
 }
 </style>

+ 11 - 1
vue.config.js

@@ -36,11 +36,21 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://192.168.188.99:8080`,
-        target: `http://localhost:8080`,
+        // target: `http://localhost:8080`,
+        target: `http://192.168.1.13:8080`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''
         }
+      },
+      //代理  =>扫描图片的上传地址
+      '/dev-api/identificat/upload': {
+        // target: `http://192.168.188.99:8080`,
+        target: `http://192.168.1.11:19500/upload`,
+        changeOrigin: true,
+        pathRewrite: {
+          '^/dev-api/identificat/upload': ''
+        }
       }
     },
     disableHostCheck: true