feat: 退出登录的处理
This commit is contained in:
@@ -102,6 +102,9 @@ const handleLogout = () => {
|
|||||||
uni.clearStorageSync();
|
uni.clearStorageSync();
|
||||||
emits("close");
|
emits("close");
|
||||||
uni.$emit(NOTICE_EVENT_LOGOUT);
|
uni.$emit(NOTICE_EVENT_LOGOUT);
|
||||||
|
uni.showToast({
|
||||||
|
title: "退出登录成功",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -258,9 +258,6 @@ const addNoticeListener = () => {
|
|||||||
|
|
||||||
uni.$on(NOTICE_EVENT_LOGOUT, () => {
|
uni.$on(NOTICE_EVENT_LOGOUT, () => {
|
||||||
resetConfig();
|
resetConfig();
|
||||||
uni.showToast({
|
|
||||||
title: "退出登录成功",
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
uni.$on(SCROLL_TO_BOTTOM, () => {
|
uni.$on(SCROLL_TO_BOTTOM, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user