mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Import generated app list into app pages
This commit is contained in:
parent
55f5fda670
commit
678e8697f8
1 changed files with 7 additions and 7 deletions
|
|
@ -19,25 +19,25 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Logo from '~/components/Logo.vue'
|
import Logo from '~/components/Logo.vue'
|
||||||
import buildAppList from '~/helpers/build-app-list'
|
import appList from '~/assets/app-list.json'
|
||||||
|
// import buildAppList from '~/helpers/build-app-list'
|
||||||
|
|
||||||
|
console.log('appList', appList)
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Logo
|
Logo
|
||||||
},
|
},
|
||||||
async asyncData ({ params: { slug }, error, payload }) {
|
async asyncData ({ params: { slug } }) {
|
||||||
|
|
||||||
const appList = (payload) ? payload : await buildAppList()
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
slug,
|
slug
|
||||||
appList
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
app () {
|
app () {
|
||||||
// console.log('context', this.slug)
|
// console.log('context', this.slug)
|
||||||
return this.appList.find(app => (app.slug === this.slug))
|
return appList.find(app => (app.slug === this.slug))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue