fix(移动端): pc 端工作台和移动端默认页面调整为我的收藏 #17637

This commit is contained in:
dataeaseShu
2025-12-23 14:42:19 +08:00
committed by dataeaseShu
parent 4a6961543c
commit ba17fcecc1
2 changed files with 6 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ const router = useRouter()
const { t } = useI18n()
const { wsCache } = useCache('sessionStorage')
const activeTab = ref('recent')
const activeTab = ref('store')
const emptyTips = ref('')
const state = reactive({
tableData: [],
@@ -62,8 +62,8 @@ const loadShareTableData = () => {
}
const baseTablePaneList = ref([
{ title: t('work_branch.recent'), name: 'recent', disabled: false },
{ title: '我的收藏', name: 'store', disabled: false },
{ title: t('work_branch.recent'), name: 'recent', disabled: false },
{ title: t('visualization.share_out'), name: 'share', disabled: false }
])
@@ -139,7 +139,7 @@ const handleClick = ({ name, disabled }) => {
}
}
onMounted(() => {
activeTab.value = wsCache.get('activeTab') || 'recent'
activeTab.value = wsCache.get('activeTab') || 'store'
wsCache.set('activeTab', '')
!!busiAuthList.length &&
handleClick({

View File

@@ -45,7 +45,7 @@ defineProps({
})
const desktop = wsCache.get('app.desktop')
const panelKeyword = ref()
const activeName = ref('recent')
const activeName = ref('store')
const activeCommand = ref('all_types')
const state = reactive({
tableData: [],
@@ -146,8 +146,8 @@ const loadTableData = () => {
}
const baseTablePaneList = ref([
{ title: t('work_branch.recently_used'), name: 'recent', disabled: false },
{ title: t('work_branch.my_collection'), name: 'store', disabled: false },
{ title: t('work_branch.recently_used'), name: 'recent', disabled: false },
{ title: t('visualization.share_out'), name: 'share', disabled: false }
])
@@ -182,7 +182,7 @@ watch(
onMounted(() => {
!!busiAuthList.length &&
handleClick({
paneName: 'recent',
paneName: 'store',
uid: 0,
slots: undefined,
props: undefined,