Commit 2e72ef25 authored by 李苏's avatar 李苏 💬

duration:1000

parent 762943de
......@@ -139,20 +139,23 @@ Vue.prototype.$asRun = function() {
Vue.prototype.$warning = function(text) {
var text = text || '警告'
this.$message({ showClose: true, message: text,
type: 'warning'
type: 'warning',
duration:1000
});
}
Vue.prototype.$success = function(text) {
var text = text || 'no info'
this.$message({ showClose: true, message: text, type: 'success'
this.$message({ showClose: true, message: text, type: 'success', duration:1000
});
}
Vue.prototype.$error = function(text) {
var text = text || 'no info'
this.$message({ showClose: true,
this.$message({ showClose: true, duration:1000,
message: text,
type: 'error'
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment