Authored by 陈峰

iview message

... ... @@ -53,7 +53,7 @@ module.exports = {
test: /\.js$/,
loader: 'babel-loader',
include: [util.resolve('/')],
exclude: /node_modules/
// exclude: /node_modules/
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
... ...
... ... @@ -4,7 +4,7 @@
import _ from 'lodash';
import axios from 'axios';
import purviews from 'purview';
import Message from 'iview/src/components/message';
import iView from 'iview';
const plugin = {
install(Vue) {
... ... @@ -38,7 +38,7 @@ const plugin = {
Vue.logout();
return false;
}
Message.error('接口异常');
iView.Message.error('接口异常');
return false;
};
}
... ...