mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
fix: caching z API GH
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ export default defineComponent({
|
||||
}),
|
||||
|
||||
async created() {
|
||||
const stockData = await (await fetch('https://spythere.github.io/api/stockDataNew.json')).json();
|
||||
const stockData = await (await fetch(`https://spythere.github.io/api/stockDataNew.json?t=${Math.floor(Date.now() / 60000)}`)).json();
|
||||
|
||||
this.store.stockData = stockData;
|
||||
},
|
||||
|
||||
@@ -141,7 +141,7 @@ export default defineComponent({
|
||||
|
||||
async mounted() {
|
||||
const readyStockJSONData: ResponseJSONData = await (
|
||||
await fetch('https://spythere.github.io/api/readyStock.json')
|
||||
await fetch(`https://spythere.github.io/api/readyStock.json?t=${Math.floor(Date.now() / 60000)}`)
|
||||
).json();
|
||||
|
||||
if (!readyStockJSONData) {
|
||||
|
||||
Reference in New Issue
Block a user