|
@@ -50,35 +50,36 @@ Vue.prototype.$STRSTATUS = STRSTATUS;
|
|
Vue.prototype.$msg = (data)=>{
|
|
Vue.prototype.$msg = (data)=>{
|
|
return Message({
|
|
return Message({
|
|
offset: 85,
|
|
offset: 85,
|
|
- ...data
|
|
|
|
|
|
+ ...data,
|
|
|
|
+ duration: 2000
|
|
});
|
|
});
|
|
}
|
|
}
|
|
Vue.prototype.$msg.success = (string)=>{
|
|
Vue.prototype.$msg.success = (string)=>{
|
|
return Message.success({
|
|
return Message.success({
|
|
offset: 85,
|
|
offset: 85,
|
|
message: string,
|
|
message: string,
|
|
- duration: 1000
|
|
|
|
|
|
+ duration: 2000
|
|
});
|
|
});
|
|
}
|
|
}
|
|
Vue.prototype.$msg.warning = (string)=>{
|
|
Vue.prototype.$msg.warning = (string)=>{
|
|
return Message.warning({
|
|
return Message.warning({
|
|
offset: 85,
|
|
offset: 85,
|
|
message: string,
|
|
message: string,
|
|
- duration: 1000
|
|
|
|
|
|
+ duration: 2000
|
|
});
|
|
});
|
|
}
|
|
}
|
|
Vue.prototype.$msg.message = (string)=>{
|
|
Vue.prototype.$msg.message = (string)=>{
|
|
return Message.info({
|
|
return Message.info({
|
|
offset: 85,
|
|
offset: 85,
|
|
message: string,
|
|
message: string,
|
|
- duration: 1000
|
|
|
|
|
|
+ duration: 2000
|
|
});
|
|
});
|
|
}
|
|
}
|
|
Vue.prototype.$msg.error = (string)=>{
|
|
Vue.prototype.$msg.error = (string)=>{
|
|
return Message.error({
|
|
return Message.error({
|
|
offset: 85,
|
|
offset: 85,
|
|
message: string,
|
|
message: string,
|
|
- duration: 1000
|
|
|
|
|
|
+ duration: 2000
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|