mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Use generated app list for routes
This commit is contained in:
parent
678e8697f8
commit
ce9e24ab28
1 changed files with 4 additions and 3 deletions
|
|
@ -32,9 +32,10 @@ export default {
|
|||
|
||||
generate: {
|
||||
routes() {
|
||||
return buildAppList()
|
||||
.then((appList) => {
|
||||
// console.log('result', result)
|
||||
return import('./assets/app-list.json')//buildAppList()
|
||||
.then((importedAppList) => {
|
||||
const appList = importedAppList.default
|
||||
// console.log('appList', appList)
|
||||
|
||||
return appList.map(app => ({
|
||||
route: '/app/' + app.slug,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue