1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.tpl_src_routes = void 0;
|
4 | var utils_1 = require("@omni-door/utils");
|
5 | var tpl = "`import { createRouter, createWebHashHistory } from 'vue-router';\nimport Home from '@pages/home';\n${ts ? `/* import types */\nimport type { RouteRecordRaw } from 'vue-router';\n` : ''}\nconst routes${ts ? ': Array<RouteRecordRaw>' : ''} = [\n {\n path: '/',\n name: 'Home',\n component: Home\n },\n {\n path: '/detail',\n name: 'Detail',\n component: () => import('@pages/detail'),\n children: [\n {\n path: ':id',\n component: () => import('@components/Detail')\n }\n ]\n }\n];\n\nconst router = createRouter({\n history: createWebHashHistory(),\n routes\n});\n\nexport default router;\n`";
|
6 | exports.tpl_src_routes = {
|
7 | tpl: tpl
|
8 | };
|
9 | exports.default = utils_1.tplEngineInit(exports.tpl_src_routes, 'tpl');
|