File tree 14 files changed +20
-13
lines changed
14 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 12
12
- 修复环境变量配置失效以及 history 模式下 logo 地址问题
13
13
- 修复图表库切换页面导致宽高计算错误
14
14
- 修复多语言配置 ` Locale.show ` 导致配置不生效
15
+ - 修复路由类型错误
15
16
16
17
## 2.0.0-rc.14 (2020-12-15)
17
18
Original file line number Diff line number Diff line change 1
1
import { defineComponent } from 'vue' ;
2
2
3
- export type Component = ReturnType < typeof defineComponent > ;
3
+ export type Component < T extends any = any > =
4
+ | ReturnType < typeof defineComponent >
5
+ | ( ( ) => Promise < typeof import ( '*.vue' ) > )
6
+ | ( ( ) => Promise < T > ) ;
Original file line number Diff line number Diff line change 1
- import { AppRouteModule } from '/@/router/types.d ' ;
1
+ import { AppRouteModule } from '/@/router/types' ;
2
2
import type { MenuModule , Menu , AppRouteRecordRaw } from '/@/router/types' ;
3
3
4
4
import { findPath , forEach , treeMap } from '/@/utils/helper/treeHelper' ;
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
- import type { MenuModule } from '/@/router/types.d ' ;
1
+ import type { MenuModule } from '/@/router/types' ;
2
2
import { t } from '/@/hooks/web/useI18n' ;
3
3
4
4
const menu : MenuModule = {
Original file line number Diff line number Diff line change 1
1
import type { RouteRecordRaw } from 'vue-router' ;
2
2
import { RoleEnum } from '/@/enums/roleEnum' ;
3
- import Component from '/@/components/types' ;
3
+
4
+ import type { Component } from '/@/components/types' ;
5
+
4
6
export interface RouteMeta {
5
7
// title
6
8
title : string ;
@@ -30,6 +32,7 @@ export interface RouteMeta {
30
32
single ?: boolean ;
31
33
}
32
34
35
+ // @ts -ignore
33
36
export interface AppRouteRecordRaw extends Omit < RouteRecordRaw , 'meta' > {
34
37
name : string ;
35
38
meta : RouteMeta ;
You can’t perform that action at this time.
0 commit comments