@gx-design-vue/create-gx-cli 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/create-gx-cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "license": "MIT",
5
5
  "description": "a cli to bootstrap gx project",
6
6
  "main": "src/index.js",
@@ -48,7 +48,7 @@ const settingConfig: SettingConfig = {
48
48
  // mock-接口前缀
49
49
  mockPrefixUrl: '/mock-server',
50
50
  // 开发环境端口号
51
- devPort: 9260,
51
+ devPort: 9280,
52
52
  // pro版本copyright可随意修改
53
53
  copyright: 'gx12358 2539306317@qq.com',
54
54
  // 缓存路由的最大数量
@@ -7,9 +7,9 @@ export const menuList: MenuDataItem[] = getLevelData([
7
7
  component: 'Page/one',
8
8
  createTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
9
9
  menuId: 2,
10
- path: 'One',
10
+ path: 'one',
11
11
  title: '页面一',
12
- name: 'Page',
12
+ name: 'PageOne',
13
13
  menuType: 'C',
14
14
  orderNum: '2',
15
15
  isFrame: '1',
@@ -88,14 +88,6 @@ export function getRootMenu(rows: MenuDataItem[]): MenuDataItem[] {
88
88
  buildtree(rows, menus, 0)
89
89
  }
90
90
  rootRouter[0].children = menus
91
- rootRouter[0].children.push({
92
- key: 'externalLink',
93
- path: '/externalLink',
94
- meta: {
95
- title: '外链地址'
96
- },
97
- hidden: true
98
- } as MenuDataItem)
99
91
  return cloneDeep(rootRouter)
100
92
  }
101
93
 
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '@gx-design-vue/pro-layout'
2
2
 
3
3
  const dataSource: AppRouteModule = {
4
4
  path: '/two',
5
- name: 'Two',
5
+ name: 'PageTwo',
6
6
  component: () => import('@/views/Page/two.vue'),
7
7
  meta: {
8
8
  title: '页面2'