Refresh right after login

This commit is contained in:
Matthias 2022-01-24 20:20:04 +01:00
parent 4c040a78a2
commit 6b9a590ddd

View File

@ -97,6 +97,8 @@ export default class Login extends Vue {
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
@ftbot.Action selectBot!: (botId: string) => void; @ftbot.Action selectBot!: (botId: string) => void;
@ftbot.Action allRefreshFull;
@Prop({ default: false }) inModal!: boolean; @Prop({ default: false }) inModal!: boolean;
$refs!: { $refs!: {
@ -174,6 +176,7 @@ export default class Login extends Vue {
} }
this.emitLoginResult(true); this.emitLoginResult(true);
this.allRefreshFull();
if (this.inModal === false) { if (this.inModal === false) {
if (typeof this.$route.query.redirect === 'string') { if (typeof this.$route.query.redirect === 'string') {
const resolved = this.$router.resolve({ path: this.$route.query.redirect }); const resolved = this.$router.resolve({ path: this.$route.query.redirect });