|
|
@@ -1,5 +1,5 @@ |
|
|
|
import { request } from 'umi'; |
|
|
|
|
|
|
|
import { getDataBaseUrl } from '@/global_data'; |
|
|
|
/** 获取场景列表 */ |
|
|
|
export async function GetFoodPage(data) { |
|
|
|
return request(`/saasstore/api/foodmenu/page`, { |
|
|
@@ -37,14 +37,14 @@ export async function FoodAdd(data) { |
|
|
|
}); |
|
|
|
} |
|
|
|
export async function GetGoodsList(data) { |
|
|
|
return request(`/saasbase/api/goods/page`, { |
|
|
|
return request(getDataBaseUrl()+`/api/goods/page`, { |
|
|
|
method: 'POST', |
|
|
|
data: data, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export async function gettree(params) { |
|
|
|
return request('/saasbase/api/goodstype/tree', { |
|
|
|
return request(getDataBaseUrl()+'/api/goodstype/tree', { |
|
|
|
method: 'GET', |
|
|
|
data: { |
|
|
|
...params, |
|
|
@@ -52,7 +52,7 @@ export async function FoodAdd(data) { |
|
|
|
}); |
|
|
|
} |
|
|
|
export async function GetDeviceList() { |
|
|
|
return request(`/saasbase/api/device/list`, { |
|
|
|
return request(getDataBaseUrl()+`/api/device/list`, { |
|
|
|
method: 'GET', |
|
|
|
}); |
|
|
|
} |