From 51d4ba79074d56e5f7093a427a5d9eaf617224c1 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 2 Mar 2022 15:37:27 +0800 Subject: [PATCH] 27086 --- src/utils/axios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/axios.js b/src/utils/axios.js index f2890f8..d2ac3c3 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -26,7 +26,7 @@ instance.interceptors.response.use( function (response) { util.$hideLoading(); if (response.data.code === 1) { - util.$toast(response.data.msg); + util.$toast({title: response.data.msg, duration: 3000}); } else if (response.data.code == 2) { //首次静默登录异常不做任何返回 } else if (response.data.code === 401) {