Your Name
2022-09-26 df06d5adebeedb5edca6264450671792ccbd9d4e
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);