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

漏提交

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