fix: 优化体验
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 3h10m20s

This commit is contained in:
sexygoat
2026-05-09 16:13:39 +08:00
parent b54d8f5b32
commit 28246f5345
17 changed files with 1684 additions and 255 deletions

16
src/api/shop.ts Normal file
View File

@@ -0,0 +1,16 @@
import { get } from '@/utils/request'
export interface ShopCascadeParams {
parent_id?: number
shop_name?: string
}
export interface ShopCascadeItem {
id: number
shop_name: string
has_children: boolean
}
export function getShopCascade(params?: ShopCascadeParams) {
return get<ShopCascadeItem[]>('/api/admin/shops/cascade', { params })
}