diff --git a/src/api/config.ts b/src/api/config.ts index a3e1da3..468a498 100644 --- a/src/api/config.ts +++ b/src/api/config.ts @@ -1,5 +1,8 @@ import axios from '@/utils/request'; -export const systemBuyerAdd = async (data: Record): Promise => (await axios.post('/product/systemBuyer/add', data)).data; +export const saveOrUpdate = async (data: Record): Promise => (await axios.post('/product/systemBuyer/saveOrUpdate', data)).data; export const systemBuyerFind = async (): Promise => (await axios.post('/product/systemBuyer/details')).data; -export const systemBuyerUpdate = async (data: Record): Promise => (await axios.post('/product/systemBuyer/update', data)).data; +export const ages = async (): Promise => (await axios.post('/product/ages/list')).data; +export const edu = async (): Promise => (await axios.post('/product/edu/list')).data; +export const accountType = async (): Promise => (await axios.post('/product/accountType/list')).data; +export const buyerType = async (): Promise => (await axios.post('/product/buyerType/list')).data; diff --git a/src/components/Search.vue b/src/components/Search.vue index bc7514b..4d578c2 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -11,7 +11,7 @@