Showing
2 changed files
with
3 additions
and
3 deletions
@@ -53,7 +53,7 @@ module.exports = { | @@ -53,7 +53,7 @@ module.exports = { | ||
53 | test: /\.js$/, | 53 | test: /\.js$/, |
54 | loader: 'babel-loader', | 54 | loader: 'babel-loader', |
55 | include: [util.resolve('/')], | 55 | include: [util.resolve('/')], |
56 | - exclude: /node_modules/ | 56 | + // exclude: /node_modules/ |
57 | }, | 57 | }, |
58 | { | 58 | { |
59 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, | 59 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, |
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | import _ from 'lodash'; | 4 | import _ from 'lodash'; |
5 | import axios from 'axios'; | 5 | import axios from 'axios'; |
6 | import purviews from 'purview'; | 6 | import purviews from 'purview'; |
7 | -import Message from 'iview/src/components/message'; | 7 | +import iView from 'iview'; |
8 | 8 | ||
9 | const plugin = { | 9 | const plugin = { |
10 | install(Vue) { | 10 | install(Vue) { |
@@ -38,7 +38,7 @@ const plugin = { | @@ -38,7 +38,7 @@ const plugin = { | ||
38 | Vue.logout(); | 38 | Vue.logout(); |
39 | return false; | 39 | return false; |
40 | } | 40 | } |
41 | - Message.error('接口异常'); | 41 | + iView.Message.error('接口异常'); |
42 | return false; | 42 | return false; |
43 | }; | 43 | }; |
44 | } | 44 | } |
-
Please register or login to post a comment