提交 2365cc4f authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 97cf9238
...@@ -147,8 +147,13 @@ export function getCategoryList(params?: { name?: string }) { ...@@ -147,8 +147,13 @@ export function getCategoryList(params?: { name?: string }) {
return httpRequest.get('/api/lab/v1/experiment/live-commodity-type/trees', { params }) return httpRequest.get('/api/lab/v1/experiment/live-commodity-type/trees', { params })
} }
// 获取实验直播商品列表 // 获取实验直播商品的列表
export function getProductList(params?: { name?: string }) { export function getProductList(params?: {
title?: string
live_commodity_type_id?: string
page: number
'per-page': number
}) {
return httpRequest.get('/api/lab/v1/experiment/live-commodity/list', { params }) return httpRequest.get('/api/lab/v1/experiment/live-commodity/list', { params })
} }
......
...@@ -3,7 +3,7 @@ import { getProductList } from '@/api/base' ...@@ -3,7 +3,7 @@ import { getProductList } from '@/api/base'
const options = ref([]) const options = ref([])
async function fetchList() { async function fetchList() {
const res = await getProductList() const res = await getProductList({ 'per-page': 1000 })
options.value = res.data.list options.value = res.data.list
} }
watchEffect(() => { watchEffect(() => {
......
import httpRequest from '@/utils/axios' import httpRequest from '@/utils/axios'
// 获取实验直播商品的列表 // 获取实验直播商品的列表
export function getProductList(params?: { name?: string }) { export function getProductList(params?: {
title?: string
live_commodity_type_id?: string
page: number
'per-page': number
}) {
return httpRequest.get('/api/lab/v1/experiment/live-commodity/list', { params }) return httpRequest.get('/api/lab/v1/experiment/live-commodity/list', { params })
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论