[F] Push state after updating tab
This commit is contained in:
@@ -261,14 +261,14 @@ export default class App extends Vue
|
|||||||
// Debug output TODO: Remove this
|
// Debug output TODO: Remove this
|
||||||
console.log(`onNavigate: Previous: ${this.selectedTab}, New: ${tab}`);
|
console.log(`onNavigate: Previous: ${this.selectedTab}, New: ${tab}`);
|
||||||
|
|
||||||
|
// Update selected tab
|
||||||
|
this.selectedTab = tab;
|
||||||
|
|
||||||
// Check url
|
// Check url
|
||||||
let url = `/${tab}`;
|
let url = `/${tab}`;
|
||||||
|
|
||||||
// Push history state
|
// Push history state
|
||||||
window.history.pushState({lastTab: this.selectedTab}, '', url);
|
window.history.pushState({lastTab: this.selectedTab}, '', url);
|
||||||
|
|
||||||
// Update selected tab
|
|
||||||
this.selectedTab = tab;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user