20260914224947
This commit is contained in:
1 parent
63514476d7
commit
d26afb5fec
69 files changed
+158
-1008
No files matched your search
@@ -2,7 +2,7 @@ import { ref } from 'vue'
|
||||
import { loadDataApi } from '@/services/api'
|
||||
|
||||
/**
|
||||
* 文件分类逻辑 —— 加载 bf_files_cateid 扁平表,供 FmsTree 展示(分类为平铺列表,无层级)。
|
||||
* 文件分类逻辑 —— 加载 bf_files_category 扁平表,供 FmsTree 展示(分类为平铺列表,无层级)。
|
||||
* 「全部分类」虚拟根由 FmsTree 的 showRoot 注入,本组合式函数只负责取数与选中状态。
|
||||
*/
|
||||
export function useFileCategory() {
|
||||
@@ -16,11 +16,7 @@ export function useFileCategory() {
|
||||
loading.value = true
|
||||
error.value = null
|
||||
try {
|
||||
const res = await loadDataApi(
|
||||
'bf_files_cateid',
|
||||
'b_canuse = 1',
|
||||
'b_xh ASC, b_id ASC',
|
||||
)
|
||||
const res = await loadDataApi('bf_files_category', 'b_canuse = 1', 'b_xh ASC, b_id ASC')
|
||||
categories.value = res.data || []
|
||||
} catch (e) {
|
||||
error.value = e?.message || String(e)
|
||||
|
||||
Reference in new issue
Block a user