From 6fa3f1041cc86aa32233acb0f5f0af57a0f7f9c1 Mon Sep 17 00:00:00 2001 From: sole Date: Mon, 12 Mar 2018 10:17:24 +0800 Subject: [PATCH] fix[request.js]: error mesaage (#65) fix --- src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/request.js b/src/utils/request.js index 755b6d6..7b9c801 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -30,7 +30,7 @@ service.interceptors.response.use( const res = response.data if (res.code !== 20000) { Message({ - message: res.data, + message: res.message, type: 'error', duration: 5 * 1000 })