hejianhao
2025-03-31 c640ff39f679965dd2cea67de5507eaf67619b5c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import App from "./App.vue";
import router from "./router";
import store from './store'
 
Vue.config.productionTip = false;
Vue.use(ElementUI, { size: 'small' })
 
Vue.prototype.msgsuccess = function (msg) {
  this.$message({
    message: msg,
    type: "success"
  });
}
 
Vue.prototype.msgerror = function (msg) {
  this.$message({
    message: msg,
    type: "error"
  });
}
 
Vue.prototype.msgwarning = function (msg) {
  this.$message({
    message: msg,
    type: "warning"
  });
}
 
Vue.prototype.msginfo = function (msg) {
  this.$message.info(msg);
}
 
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");