jinx 4 дней назад
Родитель
Сommit
ad89eb3286
3 измененных файлов с 2 добавлено и 13 удалено
  1. 1 1
      src/api.js
  2. 0 11
      src/views/Home/index.vue
  3. 1 1
      vue.config.js

+ 1 - 1
src/api.js

@@ -40,7 +40,7 @@ export function resetWholeData(sceneCode) {
     })
 }
 export function reportTagInfo(data) {
-  const url = `https://uat-laser.4dkankan.com/location/ingest`
+  const url = `/location/ingest`
 
   return axios.post(url, data).then((res) => {
     if (res?.data?.code === 200 || res?.status === 200) {

+ 0 - 11
src/views/Home/index.vue

@@ -492,7 +492,6 @@ export default {
           rawWholeData[index].id,
         ]);
       }
-      console.error("wholeDataForRender length", wholeDataForRender);
 
       if (isJoint) {
         gNode
@@ -521,10 +520,6 @@ export default {
             let ids = rawWholeData[pointId - 1].ids;
             let isDel = true;
 
-            if (pointId == 305) {
-              console.error("*****", pointId);
-              console.error("305 ids: ", ids);
-            }
             ids.forEach((id, idx) => {
               if (id !== "-1") {
                 isDel = false;
@@ -561,10 +556,6 @@ export default {
             let ids = rawWholeData[pointId - 1].ids;
             let isDel = true;
 
-            if (pointId == 305) {
-              console.error("*****", pointId);
-              console.error("305 ids: ", ids);
-            }
             ids.forEach((id, idx) => {
               if (id !== "-1") {
                 isDel = false;
@@ -1286,7 +1277,6 @@ export default {
       }
       // 渲染
       this.renderWholePoints(true);
-      console.error("点位数据更新了!", rawWholeData);
 
       // 存入历史记录
       if (
@@ -1408,7 +1398,6 @@ export default {
       this.isEditingPoint = false;
     },
     onPointEditorDelete() {
-      console.error(this.pointDataForEditor);
       rawWholeData[this.pointDataForEditor.id - 1].ids = [
         "-1",
         "-1",

+ 1 - 1
vue.config.js

@@ -7,7 +7,7 @@ module.exports = {
     https: false,
     proxy: {
       "ingest": {
-        target: "http://192.168.0.17:8080",
+        target: process.env.VUE_APP_API_URL_PREFIX,
         changeOrigin: true,
       },
     },