diff --git a/.env.production b/.env.production index 13153e2..5df27e3 100644 --- a/.env.production +++ b/.env.production @@ -5,7 +5,7 @@ VUE_APP_TITLE = 双重预防 # 网关地址 VUE_APP_GATEWAY_URL="/prod-api" # 服务地址 -VUE_APP_BASE_API_URL="http://192.168.1.212:8081" +VUE_APP_BASE_API_URL="http://119.45.186.133:8081" # 服务前-- 请严格遵守格式 不允许换行 VUE_APP_SERVICE_PREFIX= '{"system":"/system","file":"/file","prevention":"/prevention","bpm":"/bpm"}' # 是否显示全部菜单 @@ -14,6 +14,6 @@ VUE_APP_ALL_MENU = false # VUE_APP_REMOTES_URL="http://192.168.1.20:8090" # # 当前应用部署地址 # VUE_APP_EXPOSES_URL="http://192.168.1.20:8090" -VUE_APP_REMOTES_URL="http://192.168.1.212/common" +VUE_APP_REMOTES_URL="http://119.45.158.12/common" # 当前应用部署地址 VUE_APP_EXPOSES_URL="/prevention" \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 89ca5b3..a6be0b0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,6 @@ diff --git a/src/bootstrap.ts b/src/bootstrap.ts index ecbbb08..c56f026 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -10,6 +10,8 @@ import "@/assets/common/icons"; // import ModelComponent from "@/components/model.component.vue" import Mock from "mockjs" // import { MockData } from './mock'; +import MessageComponent from "common/message"; +import { BusUtils } from "hbt-common/utils/busUtils"; Vue.config.productionTip = false; // Vue.config.silent = true; @@ -35,6 +37,8 @@ requireAll(svgs) // Vue.component("hbt-model",ModelComponent) Vue.component("hbt-svg",SvgComponent) Vue.component("hbt-echarts",EchartsComponent) +Vue.component("hbt-message", MessageComponent); +Vue.prototype.$msgBus = new BusUtils("wsMessage"); Vue.use(ElementUI); new Vue({ diff --git a/src/global.d.ts b/src/global.d.ts index 3f000bf..c18962a 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -3,4 +3,5 @@ declare module 'common/notFound'; declare module 'common/index'; declare module 'common/layout'; declare module 'common/login'; -declare module 'file-saver' \ No newline at end of file +declare module 'file-saver'; +declare module "common/message" \ No newline at end of file