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) {