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 @@