@@ -46,10 +46,8 @@ export default defineStore('loginStore', {
|
||||
// 然而有一種情況是使用者在沒有登入的情況下貼上了某一個頁面的網址,
|
||||
// 則在此情況下時,我們會在使用者稍後登入後,把使用者帶到剛才記住的 return-to 網址
|
||||
if(this.rememberedReturnToUrl !== "") {
|
||||
console.log('1111', );
|
||||
window.location.href = this.rememberedReturnToUrl;
|
||||
window.location.href = atob(this.rememberedReturnToUrl);
|
||||
} else {
|
||||
console.log('2222', );
|
||||
this.$router.push('/login');
|
||||
}
|
||||
} catch(error) {
|
||||
|
||||
Reference in New Issue
Block a user