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>
|
||||
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 {
|
||||
components: {
|
||||
Logo
|
||||
},
|
||||
async asyncData ({ params: { slug }, error, payload }) {
|
||||
|
||||
const appList = (payload) ? payload : await buildAppList()
|
||||
async asyncData ({ params: { slug } }) {
|
||||
|
||||
return {
|
||||
slug,
|
||||
appList
|
||||
slug
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
app () {
|
||||
// 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