Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
b6e5c3f6
Commit
b6e5c3f6
authored
Dec 23, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): fix routing type error #145
parent
7db0c5c4
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
20 additions
and
13 deletions
+20
-13
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
types.ts
src/components/types.ts
+4
-1
menuHelper.ts
src/router/helper/menuHelper.ts
+1
-1
dashboard.ts
src/router/menus/modules/dashboard.ts
+1
-1
charts.ts
src/router/menus/modules/demo/charts.ts
+1
-1
comp.ts
src/router/menus/modules/demo/comp.ts
+1
-1
excel.ts
src/router/menus/modules/demo/excel.ts
+1
-1
feat.ts
src/router/menus/modules/demo/feat.ts
+1
-1
iframe.ts
src/router/menus/modules/demo/iframe.ts
+1
-1
level.ts
src/router/menus/modules/demo/level.ts
+1
-1
page.ts
src/router/menus/modules/demo/page.ts
+1
-1
permission.ts
src/router/menus/modules/demo/permission.ts
+1
-1
home.ts
src/router/menus/modules/home.ts
+1
-1
types.ts
src/router/types.ts
+4
-1
No files found.
CHANGELOG.zh_CN.md
View file @
b6e5c3f6
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
-
修复环境变量配置失效以及 history 模式下 logo 地址问题
-
修复环境变量配置失效以及 history 模式下 logo 地址问题
-
修复图表库切换页面导致宽高计算错误
-
修复图表库切换页面导致宽高计算错误
-
修复多语言配置
`Locale.show`
导致配置不生效
-
修复多语言配置
`Locale.show`
导致配置不生效
-
修复路由类型错误
## 2.0.0-rc.14 (2020-12-15)
## 2.0.0-rc.14 (2020-12-15)
...
...
src/components/types.ts
View file @
b6e5c3f6
import
{
defineComponent
}
from
'
vue
'
;
import
{
defineComponent
}
from
'
vue
'
;
export
type
Component
=
ReturnType
<
typeof
defineComponent
>
;
export
type
Component
<
T
extends
any
=
any
>
=
|
ReturnType
<
typeof
defineComponent
>
|
(()
=>
Promise
<
typeof
import
(
'
*.vue
'
)
>
)
|
(()
=>
Promise
<
T
>
);
src/router/helper/menuHelper.ts
View file @
b6e5c3f6
import
{
AppRouteModule
}
from
'
/@/router/types
.d
'
;
import
{
AppRouteModule
}
from
'
/@/router/types
'
;
import
type
{
MenuModule
,
Menu
,
AppRouteRecordRaw
}
from
'
/@/router/types
'
;
import
type
{
MenuModule
,
Menu
,
AppRouteRecordRaw
}
from
'
/@/router/types
'
;
import
{
findPath
,
forEach
,
treeMap
}
from
'
/@/utils/helper/treeHelper
'
;
import
{
findPath
,
forEach
,
treeMap
}
from
'
/@/utils/helper/treeHelper
'
;
...
...
src/router/menus/modules/dashboard.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/charts.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/comp.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/excel.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/feat.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/iframe.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/level.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/page.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/demo/permission.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/menus/modules/home.ts
View file @
b6e5c3f6
import
type
{
MenuModule
}
from
'
/@/router/types
.d
'
;
import
type
{
MenuModule
}
from
'
/@/router/types
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
menu
:
MenuModule
=
{
const
menu
:
MenuModule
=
{
...
...
src/router/types.
d.
ts
→
src/router/types.ts
View file @
b6e5c3f6
import
type
{
RouteRecordRaw
}
from
'
vue-router
'
;
import
type
{
RouteRecordRaw
}
from
'
vue-router
'
;
import
{
RoleEnum
}
from
'
/@/enums/roleEnum
'
;
import
{
RoleEnum
}
from
'
/@/enums/roleEnum
'
;
import
Component
from
'
/@/components/types
'
;
import
type
{
Component
}
from
'
/@/components/types
'
;
export
interface
RouteMeta
{
export
interface
RouteMeta
{
// title
// title
title
:
string
;
title
:
string
;
...
@@ -30,6 +32,7 @@ export interface RouteMeta {
...
@@ -30,6 +32,7 @@ export interface RouteMeta {
single
?:
boolean
;
single
?:
boolean
;
}
}
// @ts-ignore
export
interface
AppRouteRecordRaw
extends
Omit
<
RouteRecordRaw
,
'
meta
'
>
{
export
interface
AppRouteRecordRaw
extends
Omit
<
RouteRecordRaw
,
'
meta
'
>
{
name
:
string
;
name
:
string
;
meta
:
RouteMeta
;
meta
:
RouteMeta
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment