element message提示全局挂载

Vue.prototype.msgSuccess = function (msg) {
  this.$message({ showClose: true, message: msg, type: "success" });
}

おすすめ

転載: blog.csdn.net/qq_52912134/article/details/118755500