Commit 50a646fb authored by 李苏's avatar 李苏 💬

漏提交

parent 26851f21
......@@ -127,27 +127,33 @@ Vue.prototype.$asRun = function() {
for (let i = 0; i < length; i++) {
fnArr[i](e[i])
}
}
)
})
}
/* alert */
Vue.prototype.$warning = function(text) {
var text = text || '警告'
this.$message({ showClose: true, message: text,
type: 'warning'
this.$message({
showClose: true,
message: text,
type: 'warning'
});
}
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'
});
}
Vue.prototype.$error = function(text) {
var text = text || 'no info'
this.$message({ showClose: true,
message: text,
type: 'error'
this.$message({
showClose: true,
message: text,
type: 'error'
});
}
......@@ -158,7 +164,7 @@ new Vue({
el: '#app',
router,
store,
render:function(h){
render: function(h) {
return h(App)
}
})
})
\ No newline at end of file
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