From 5c5eccdb11df86dbd0200ffa316cddb7a671d839 Mon Sep 17 00:00:00 2001 From: 李林 <z1292839451@163.com> Date: 星期六, 23 十二月 2023 23:11:26 +0800 Subject: [PATCH] 框架引入 --- src/main.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index a66b6be..e495279 100644 --- a/src/main.js +++ b/src/main.js @@ -56,6 +56,9 @@ }) axios.interceptors.response.use(res => { + if(res.data.code === 201){ + Message.error(res.data.message) + } return res.data }, async function(err) { if (JSON.stringify(err).indexOf('timeout of') > -1) { -- Gitblit v1.9.3