refactor: 更新字典树API参数和面包屑功能

This commit is contained in:
wangqiao
2025-08-30 10:47:13 +08:00
parent 29c34caa94
commit 4fb57c13c7
2 changed files with 11 additions and 1 deletions

View File

@ -54,6 +54,7 @@
import { computed, ref } from 'vue'
import { parent } from '~/api/upnew/index'
import type { pageReq } from '~/api/upnew/types'
import { getDictTree } from '~/api/home/index'
import { ArrowRight } from '@element-plus/icons-vue'
const props = defineProps({
@ -120,6 +121,15 @@
// }
// getEditionsList()
// 获取面包屑
const {data: breadList} = await useAsyncData(`breadList-${props.type}-${props.id}-${props.groundId}-${Date.now()}`, async () => {
const res = await getDictTree({ type: props.type, id: query.value.projectType })
return res.data
})
console.log('breadList', breadList);
/** 是否是初始化 */
const queryType = ref('init')
/**获取分类下拉框 */