no message

Former-commit-id: 70df143ed54e07f4c74dbebb9c85c16a5e04f504
Former-commit-id: 1a0534b7c0087f8fe19ade542d92e91d4a246b20
Former-commit-id: a481d3ebd87daf3170d60b660a951438e5a7358a
This commit is contained in:
李杨
2018-04-03 13:17:28 +08:00
parent ddbfd9b526
commit 69847e9400
5 changed files with 48 additions and 153 deletions

View File

@@ -2,8 +2,9 @@ import Vue from 'vue'
import { Message } from 'element-ui'
import axios from 'axios'
// 在这里对返回的数据进行处理
// 在这里添加你自己的逻辑
axios.interceptors.response.use(res => {
// 在这里对返回的数据进行处理
if (res.data.code !== undefined) {
if (res.data.code !== 0) {
Message.error(res.data.msg)