|
@@ -165,13 +165,6 @@ export default {
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
userLogout().then((res) => {
|
|
userLogout().then((res) => {
|
|
|
localStorage.removeItem('userId');
|
|
localStorage.removeItem('userId');
|
|
|
- const prefix = 'Cols'; // 标识后缀
|
|
|
|
|
- Object.keys(localStorage).forEach((key) => {
|
|
|
|
|
- if (key.endsWith(prefix)) {
|
|
|
|
|
- localStorage.removeItem(key);
|
|
|
|
|
- // console.log(`已清除缓存: ${key}`);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
logout();
|
|
logout();
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|