Fix auth cookie persist path (#20)
This commit is contained in:
1 parent
636b98e003
commit
1e1becd8ee
7 files changed
+19
-23
No files matched your search
@@ -2,7 +2,6 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { IUser } from '@/operators';
|
||||
import { IToken } from '@/operators/auth/models';
|
||||
import { ROUTE_AUTH_LOGIN } from '@/router';
|
||||
|
||||
interface IData {
|
||||
accessToken: string | undefined;
|
||||
@@ -41,6 +40,7 @@ export default defineComponent({
|
||||
await this.$router.push(this.redirect);
|
||||
}
|
||||
} else {
|
||||
// reset token and trigger popup login window
|
||||
this.$store.dispatch('resetToken');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user