mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix(移动端): pc 端工作台和移动端默认页面调整为我的收藏 #17637
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user