Vue.prototype.$msgTip = function (msg, temp,warningTime = 3000) {
let type = '';
switch (temp) {
case 1: type = "error"; break;
case 2: type = 'warning';break;
default : type = 'success';break;
}
// this.$message.closeAll();
this.$message({
message: msg,
type: type,
duration: [1,2].includes(temp) ? warningTime : 1500,
showClose: true
});
},