From 02e90c2f965a8296ff5c4882637c019bc7455e96 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 27 Nov 2020 16:37:08 -0600 Subject: [PATCH] Import lists dynamically --- pages/categories.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/categories.vue b/pages/categories.vue index 71b032b..0e706eb 100644 --- a/pages/categories.vue +++ b/pages/categories.vue @@ -40,14 +40,14 @@ import LinkButton from '~/components/link-button.vue' import { byTimeThenNull } from '~/helpers/sort-list.js' -import appList from '~/static/app-list.json' -import gamelist from '~/static/game-list.json' +// import appList from '~/static/app-list.json' +// import gamelist from '~/static/game-list.json' export default { async asyncData () { - // const { default: appList } = await import('~/static/app-list.json') - // const { default: gamelist } = await import('~/static/game-list.json') + const { default: appList } = await import('~/static/app-list.json') + const { default: gamelist } = await import('~/static/game-list.json') const allList = [ ...appList.sort(byTimeThenNull),