Hotfix: strona nie pojawia się przy dodaniu async dla funkcji setup

This commit is contained in:
2021-12-06 21:17:47 +01:00
parent 1d805df5be
commit 7b6a316466
3 changed files with 4 additions and 19 deletions
+2 -4
View File
@@ -43,12 +43,10 @@ export default defineComponent({
logoSVG: require('@/assets/logo.svg'),
}),
async setup() {
setup() {
const store = inject('Store') as IStore;
const readyStockJSON = await (await fetch('https://spythere.github.io/api/readyStock.json')).json();
// const readyStockJSON = await (await fetch('https://spythere.github.io/api/readyStock.json')).json();
return {
store,