feat:引入消息组件

dev
kongyeqing 2023-11-10 10:21:52 +08:00
parent a9537e5ca7
commit 1ae25bb8db
4 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,7 @@ VUE_APP_TITLE = 双重预防
# 网关地址 # 网关地址
VUE_APP_GATEWAY_URL="/prod-api" 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"}' 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_REMOTES_URL="http://192.168.1.20:8090"
# # 当前应用部署地址 # # 当前应用部署地址
# VUE_APP_EXPOSES_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" VUE_APP_EXPOSES_URL="/prevention"

View File

@ -1,5 +1,6 @@
<template> <template>
<div id="app"> <div id="app">
<hbt-message></hbt-message>
<router-view/> <router-view/>
</div> </div>
</template> </template>

View File

@ -10,6 +10,8 @@ import "@/assets/common/icons";
// import ModelComponent from "@/components/model.component.vue" // import ModelComponent from "@/components/model.component.vue"
import Mock from "mockjs" import Mock from "mockjs"
// import { MockData } from './mock'; // import { MockData } from './mock';
import MessageComponent from "common/message";
import { BusUtils } from "hbt-common/utils/busUtils";
Vue.config.productionTip = false; Vue.config.productionTip = false;
// Vue.config.silent = true; // Vue.config.silent = true;
@ -35,6 +37,8 @@ requireAll(svgs)
// Vue.component("hbt-model",ModelComponent) // Vue.component("hbt-model",ModelComponent)
Vue.component("hbt-svg",SvgComponent) Vue.component("hbt-svg",SvgComponent)
Vue.component("hbt-echarts",EchartsComponent) Vue.component("hbt-echarts",EchartsComponent)
Vue.component("hbt-message", MessageComponent);
Vue.prototype.$msgBus = new BusUtils("wsMessage");
Vue.use(ElementUI); Vue.use(ElementUI);
new Vue({ new Vue({

3
src/global.d.ts vendored
View File

@ -3,4 +3,5 @@ declare module 'common/notFound';
declare module 'common/index'; declare module 'common/index';
declare module 'common/layout'; declare module 'common/layout';
declare module 'common/login'; declare module 'common/login';
declare module 'file-saver' declare module 'file-saver';
declare module "common/message"