mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
hotfix import stockInfoDev
This commit is contained in:
+7
-7
@@ -73,13 +73,13 @@ export default defineComponent({
|
||||
}),
|
||||
|
||||
async created() {
|
||||
if (import.meta.env['VITE_STOCK_DEV'] == '1') {
|
||||
const data = await import('../stockInfoDev.json');
|
||||
this.store.stockData = data.default as any;
|
||||
} else {
|
||||
const stockData = await (await fetch(`https://spythere.github.io/api/td2/data/stockInfo.json`)).json();
|
||||
this.store.stockData = stockData;
|
||||
}
|
||||
/* dev info testing */
|
||||
// if (import.meta.env['VITE_STOCK_DEV'] == '1') {
|
||||
// const data = await import('../stockInfoDev.json');
|
||||
// this.store.stockData = data.default as any;
|
||||
// }
|
||||
const stockData = await (await fetch(`https://spythere.github.io/api/td2/data/stockInfo.json`)).json();
|
||||
this.store.stockData = stockData;
|
||||
|
||||
// routing
|
||||
switch (window.location.pathname) {
|
||||
|
||||
Reference in New Issue
Block a user