-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch quasar-app-extension-auto-routing@0.0.31 for the project I'm working on.
My issue is that I am mostly not using Quasar's Layout. It is causing me issue as there's no option in the config to not use layout. If there is, it might be a very good idea to have such option.
Here is the diff that solved my problem:
diff --git a/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js b/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js
index 6898711..2c7501a 100644
--- a/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js
+++ b/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js
@@ -5,17 +5,12 @@ const fs = require('fs')
* This template is used to create an index.js file that
* will be imported and used inside routes.js
*/
-const indexTemplate = `import { createRouterLayout } from 'vue-router-layout'
+const indexTemplate = `
import generatedRoutes from './generated-routes'
-const RouterLayout = createRouterLayout(layout => {
- return import('<%= layoutsDir %>/' + layout + '.vue')
-})
-
export default [
{
path: '<%= routePrefix %>',
- component: RouterLayout,
children: generatedRoutes
}
]This issue body was partially generated by patch-package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels