diff --git a/.env.development b/.env.development index 2692c792..5d11267f 100644 --- a/.env.development +++ b/.env.development @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network EMS" VITE_APP_CODE = "CN EMS" # 应用版本 -VITE_APP_VERSION = "2.240704" +VITE_APP_VERSION = "2.240712" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/.env.production b/.env.production index 6096f580..9613308b 100644 --- a/.env.production +++ b/.env.production @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network EMS" VITE_APP_CODE = "CN EMS" # 应用版本 -VITE_APP_VERSION = "2.240704" +VITE_APP_VERSION = "2.240712" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/public/default/config.js b/public/default/config.js index 3b6e9858..7696cf78 100644 --- a/public/default/config.js +++ b/public/default/config.js @@ -11,8 +11,9 @@ */ (function () { // host = ip:port - const host = '192.168.8.100:33030'; - + // const host = '192.168.8.100:33030'; + const host = `${window.location.hostname}:33030`; + // Service Address sessionStorage.setItem('baseUrl', `http://${host}`); // websocket Address diff --git a/src/views/ne/neInfo/index.vue b/src/views/ne/neInfo/index.vue index d1a5761c..9d3cd6f3 100644 --- a/src/views/ne/neInfo/index.vue +++ b/src/views/ne/neInfo/index.vue @@ -233,8 +233,10 @@ function fnModalEditOk(from: Record) { if (item && res.code === RESULT_CODE_SUCCESS) { item.neType = from.neType; item.neId = from.neId; - item.ip = from.ip; + item.rmUid = from.rmUid; item.neName = from.neName; + item.ip = from.ip; + item.port = from.port; item.status = res.data.online ? '1' : '0'; Object.assign(item.serverState, res.data); const resouresUsage = parseResouresUsage(item.serverState); diff --git a/src/views/neUser/auth/index.vue b/src/views/neUser/auth/index.vue index 2d059b7c..a2d97ec3 100644 --- a/src/views/neUser/auth/index.vue +++ b/src/views/neUser/auth/index.vue @@ -770,6 +770,7 @@ onMounted(() => { @@ -1026,6 +1027,7 @@ onMounted(() => {