Skip to content

Commit fea080d

Browse files
committed
feat(ui): store orig path
1 parent f8bea2b commit fea080d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/src/App.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,10 @@ export default {
11441144
} catch (err) {
11451145
if (err.response && err.response.status === 401) {
11461146
if (this.$route.path !== '/auth/login') {
1147-
await this.$router.push({ path: '/auth/login' });
1147+
await this.$router.push({
1148+
path: '/auth/login',
1149+
query: { return: this.$route.fullPath },
1150+
});
11481151
}
11491152
this.state = 'success';
11501153
return;

0 commit comments

Comments
 (0)