|
@@ -5,6 +5,7 @@
|
|
|
import Vue from 'vue';
|
|
|
import _ from 'lodash';
|
|
|
import { Message } from 'element-ui';
|
|
|
+import { Notify } from 'vant';
|
|
|
|
|
|
const vm = new Vue({});
|
|
|
const Plugin = {
|
|
@@ -23,6 +24,7 @@ const Plugin = {
|
|
|
}
|
|
|
if (_okText) {
|
|
|
Message.success(_okText);
|
|
|
+ Notify({ type: 'success', message: _okText });
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -30,6 +32,7 @@ const Plugin = {
|
|
|
return _errText();
|
|
|
}
|
|
|
Message.error(_errText || errmsg);
|
|
|
+ Notify({ type: 'danger', message: _okText });
|
|
|
// Message({ message: _errText || errmsg, duration: 60000 });
|
|
|
return false;
|
|
|
};
|