From 63d57d11bb4f1526b10d3f68b2489c42a128914f Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 15 Mar 2019 14:31:31 +0800 Subject: [PATCH] response.data.message || --- public/react/src/modules/page/component/UpdateDrawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/page/component/UpdateDrawer.js b/public/react/src/modules/page/component/UpdateDrawer.js index 70cade00..1a4ab2ac 100644 --- a/public/react/src/modules/page/component/UpdateDrawer.js +++ b/public/react/src/modules/page/component/UpdateDrawer.js @@ -127,7 +127,7 @@ class UpdateDrawer extends Component { const { path, status } = response.data; if (status === -1) { - showSnackbar('更新失败,服务端错误') + showSnackbar(response.data.message || '更新失败,服务端错误') } else if (status === 1) { if (path) { updateChallengePath(path);