feat:增加新建项目字典

This commit is contained in:
lixg
2022-11-21 17:48:26 +08:00
parent 47d6871378
commit f18909673d
27 changed files with 280 additions and 253 deletions

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-09 09:26:26
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2022-11-21 15:06:51
* @LastEditTime: 2022-11-21 17:42:50
* @FilePath: /fe-manage/src/router/config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@@ -12,7 +12,7 @@ context.keys().forEach((path) => {
// console.log('path', path)
const componentName = path.replace(/.*\/([^\\.\\/]*)\.vue$/, "$1");
routes.push({
path: `/manage/${componentName.toLowerCase()}/:id?`,
path: `/${componentName.toLowerCase()}/:id?`,
name: componentName,
component: () => context(path),
meta: {

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-09 09:26:26
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2022-11-21 14:55:13
* @LastEditTime: 2022-11-21 17:42:59
* @FilePath: /fe-manage/src/router/index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@@ -12,13 +12,12 @@ const routes = [
{
path: '/',
name: '首页',
redirect: '/manage/learningpath'
redirect: '/learningpath'
},
...routesConfig
]
const router = createRouter({
history: createWebHistory(),
base: '/manage',
history: createWebHistory("/manage/"),
routes,
})