src/utils/request.ts
@@ -66,12 +66,12 @@ } else if (response.data.code && response.data.code === 'A0215') { ElMessage.error('token失效'); // logOut; useLoginApi() .signOut() .then(() => { Session.clear(); window.location.href = '/'; }); // useLoginApi() // .signOut() // .then(() => { // Session.clear(); // window.location.href = '/'; // }); } // if(response.data.code && response.data.code !== '200'){ return Promise.resolve(response);