mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Import lists dynamically
This commit is contained in:
parent
f3d275935e
commit
02e90c2f96
1 changed files with 4 additions and 4 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue