|
|
@@ -80,7 +80,9 @@ const changeRouter = (path: any) => {
|
|
|
if (path == '/PromptConfiguration') {
|
|
|
emitter.emit('checkPrompt')
|
|
|
} else {
|
|
|
- emitter.emit('checknoPrompt')
|
|
|
+ if (userStore.isLogin) {
|
|
|
+ emitter.emit('checknoPrompt')
|
|
|
+ }
|
|
|
}
|
|
|
if (sessionStorage.getItem('searchTableQeury')) {
|
|
|
sessionStorage.removeItem('searchTableQeury')
|
|
|
@@ -95,8 +97,7 @@ const changeRouter = (path: any) => {
|
|
|
}
|
|
|
sessionStorage.removeItem('trackingTablePageInfo')
|
|
|
sessionStorage.removeItem('bookingTablePageInfo')
|
|
|
- if (localStorage.getItem('loginAI')) {
|
|
|
- localStorage.removeItem('loginAI')
|
|
|
+ if (userStore.isLogin) {
|
|
|
emitter.emit('login-success')
|
|
|
}
|
|
|
let toPath = path
|