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: {
|
generate: {
|
||||||
routes() {
|
routes() {
|
||||||
return buildAppList()
|
return import('./assets/app-list.json')//buildAppList()
|
||||||
.then((appList) => {
|
.then((importedAppList) => {
|
||||||
// console.log('result', result)
|
const appList = importedAppList.default
|
||||||
|
// console.log('appList', appList)
|
||||||
|
|
||||||
return appList.map(app => ({
|
return appList.map(app => ({
|
||||||
route: '/app/' + app.slug,
|
route: '/app/' + app.slug,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue