Skip to content

Commit b9bf356

Browse files
committed
update page cache
1 parent b89f51c commit b9bf356

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/router/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ export const DEFAULT_ROUTE = {
1616
name: DEFAULT_ROUTE_NAME,
1717
fullPath: '/chirp/base',
1818
};
19+
20+
export const I_CACHE_LIST = ['Workplace', 'Channel', 'Radio', 'Mdc', 'Dtmf', 'Settings'];

src/store/modules/tab-bar/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
DEFAULT_ROUTE,
55
DEFAULT_ROUTE_NAME,
66
REDIRECT_ROUTE_NAME,
7+
I_CACHE_LIST
78
} from '@/router/constants';
89
import { isString } from '@/utils/is';
910
import { TabBarState, TagProps } from './types';
@@ -23,7 +24,7 @@ const BAN_LIST = [REDIRECT_ROUTE_NAME];
2324

2425
const useAppStore = defineStore('tabBar', {
2526
state: (): TabBarState => ({
26-
cacheTabList: new Set([DEFAULT_ROUTE_NAME]),
27+
cacheTabList: new Set(I_CACHE_LIST),
2728
tagList: [DEFAULT_ROUTE],
2829
}),
2930

@@ -66,7 +67,7 @@ const useAppStore = defineStore('tabBar', {
6667
resetTabList() {
6768
this.tagList = [DEFAULT_ROUTE];
6869
this.cacheTabList.clear();
69-
this.cacheTabList.add(DEFAULT_ROUTE_NAME);
70+
I_CACHE_LIST.map((e)=>this.cacheTabList.add(e));
7071
},
7172
},
7273
});

src/views/list/dtmf/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236

237237
<script lang="ts">
238238
export default {
239-
name: 'dtmfContact',
239+
name: 'Dtmf',
240240
};
241241
</script>
242242

src/views/list/search-table/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@
996996

997997
<script lang="ts">
998998
export default {
999-
name: 'SearchTable',
999+
name: 'Channel',
10001000
};
10011001
</script>
10021002

0 commit comments

Comments
 (0)