From 6a82d745d971c2af2ad3caaf48d757f07a8aadda Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 20 Dec 2019 13:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=AB=98=E7=BA=A7=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=94=9F=E6=88=90code=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/utils/Uid.js | 12 ++++++++++++ src/utils/baseUrl.js | 4 ++-- .../dataRelation/automaticoperate/route.vue | 4 ++-- .../newMapdraft/dataRelation/pathoperate/route.vue | 6 +++--- .../dataRelation/routeoperate/protect.vue | 4 ++-- .../newMapdraft/dataRelation/routeoperate/route.vue | 6 +++--- .../dataRelation/routingoperate/route.vue | 4 ++-- .../newMapdraft/dataRelation/signaloperate/route.vue | 4 ++-- .../newMapdraft/dataRelation/turnedoperate/route.vue | 4 ++-- 9 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/jmapNew/utils/Uid.js b/src/jmapNew/utils/Uid.js index 2163c9f81..036d41c25 100644 --- a/src/jmapNew/utils/Uid.js +++ b/src/jmapNew/utils/Uid.js @@ -45,3 +45,15 @@ export function getUID(type, list) { // use Math.random to make id as unique as possible. } +var base = 0; + +/** + * @public + * @param {string} type + * @return {string} + */ +export function setUID(type) { + // use Math.random to make id as unique as possible. + return [(type || ''), base++, Math.random().toFixed(5)].join('_'); +} + diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 1e9afea51..79d1c6346 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -3,11 +3,11 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - BASE_API = 'https://test.joylink.club/jlcloud'; + // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 // BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 - // BASE_API = 'http://192.168.3.82:9000'; // 杜康 + BASE_API = 'http://192.168.3.82:9000'; // 杜康 } else { BASE_API = process.env.VUE_APP_BASE_API; } diff --git a/src/views/newMap/newMapdraft/dataRelation/automaticoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/automaticoperate/route.vue index eacf6441d..adc6767b3 100644 --- a/src/views/newMap/newMapdraft/dataRelation/automaticoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/automaticoperate/route.vue @@ -64,7 +64,7 @@