proxy through ngnix
This commit is contained in:
@@ -18,7 +18,7 @@ const addOrRelaod = async (type: MarketType) => {
|
||||
const typeID = type.id;
|
||||
const [history, price] = await Promise.all([
|
||||
getHistory(jitaId, typeID),
|
||||
evepraisalAxiosInstance.post('/appraisal.json?market=jita&persist=no', type.name)
|
||||
evepraisalAxiosInstance.post(`/appraisal.json?market=jita&persist=no&raw_textarea=${type.name}`)
|
||||
]);
|
||||
const item = {
|
||||
type,
|
||||
@@ -45,6 +45,10 @@ const addItem = async () => {
|
||||
|
||||
watch(items, itms => itemsStorage.value = itms.map(i => ({ typeID: i.type.id, history: i.history })));
|
||||
onMounted(async () => {
|
||||
if (itemsStorage.value.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const types = await getMarketTypes(itemsStorage.value.map(i => i.typeID));
|
||||
const prices: any = (await evepraisalAxiosInstance.post(`/appraisal.json?market=jita&persist=no&raw_textarea=${types.map(t => t.name).join("%0A")}`)).data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user