|
|
@@ -12,6 +12,7 @@ const LOGIN_PAGE_PATH = "/pages/login/index";
|
|
|
import useGlobalStore from "@/stores/use-global-store";
|
|
|
import useUserStore from "@/stores/use-user-store";
|
|
|
|
|
|
+const globalStore = useGlobalStore()
|
|
|
export const getCurrentPageUrl = () => {
|
|
|
const pages = getCurrentPages(); // UniApp获取当前页面栈
|
|
|
const currentPage = pages[pages.length - 1];
|
|
|
@@ -104,6 +105,7 @@ const responseInterceptor = (response, options = {}) => {
|
|
|
success: () => {
|
|
|
uni.setStorageSync('logoutToSystem',1)
|
|
|
ls.set('mode', 'customer');
|
|
|
+ globalStore.setMode('customer');
|
|
|
isRedirectingToLogin = false;
|
|
|
},
|
|
|
fail: () => {
|