This commit is contained in:
zjf committed 2025-07-15 14:41:22 +08:00
commit 209f40ae9b
1 file changed
+1 -2
+1 -2
View File
@@ -33,7 +33,7 @@
:minHeight="66"
:fontSize="28"
:showClear="true"
:focus="true"
:focus="false"
placeholder="请输入商品名称"
style="border: 2rpx solid #0779fd; border-radius: 14rpx"
:focus-highlight="false"
@@ -220,7 +220,6 @@ const treeToList = <T extends { children?: T[] }>(tree: T[], result: T[] = []):
// 获取分类
const getClassify = async () => {
if (state.curMerchant.id) {
// const { data } = await shopApi.getSupermarketSpuCategory({ merchantId: state.curMerchant.id })
const { data } = await onlineShopApi.getSpuCategory()
state.classifyList = treeToList(data) ?? []
state.classifyList.unshift({ id: "", name: "全部分类" })