mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Minor fix
This commit is contained in:
@@ -382,6 +382,7 @@ export default {
|
||||
},
|
||||
setTabFromRouteParam() {
|
||||
const { tab: tabParam } = this.$route.params;
|
||||
if (!tabParam) return;
|
||||
const tabIndex = this.tabs.findIndex(tab => tab.key === tabParam);
|
||||
|
||||
this.selectedTabIndex = tabIndex === -1 ? 0 : tabIndex;
|
||||
|
||||
Reference in New Issue
Block a user