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() {
|
async created() {
|
||||||
if (import.meta.env['VITE_STOCK_DEV'] == '1') {
|
/* dev info testing */
|
||||||
const data = await import('../stockInfoDev.json');
|
// if (import.meta.env['VITE_STOCK_DEV'] == '1') {
|
||||||
this.store.stockData = data.default as any;
|
// const data = await import('../stockInfoDev.json');
|
||||||
} else {
|
// 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;
|
const stockData = await (await fetch(`https://spythere.github.io/api/td2/data/stockInfo.json`)).json();
|
||||||
}
|
this.store.stockData = stockData;
|
||||||
|
|
||||||
// routing
|
// routing
|
||||||
switch (window.location.pathname) {
|
switch (window.location.pathname) {
|
||||||
|
|||||||
Reference in New Issue
Block a user