@vtj / renderer / AccessOptions
Interface: AccessOptions
Properties
alert()?
optional
alert: (message
,options
) =>Promise
<any
>
提示信息方法
Parameters
message
string
options
Record
<string
, any
>
Returns
Promise
<any
>
Defined in
packages/renderer/types/plugins/access.d.ts:53
appName?
optional
appName:string
应用编码
Defined in
packages/renderer/types/plugins/access.d.ts:69
auth?
optional
auth:string
| (search
) =>void
授权登录页面 pathname
Defined in
packages/renderer/types/plugins/access.d.ts:33
authKey
authKey:
string
请求头和cookie记录token名称
Defined in
packages/renderer/types/plugins/access.d.ts:13
isAuth()?
optional
isAuth: (to
) =>boolean
判断是否登录页面
Parameters
to
RouteLocationNormalizedGeneric
Returns
boolean
Defined in
packages/renderer/types/plugins/access.d.ts:39
noPermissionMessage?
optional
noPermissionMessage:string
无权限提示
Defined in
packages/renderer/types/plugins/access.d.ts:61
privateKey?
optional
privateKey:string
RSA解密私钥
Defined in
packages/renderer/types/plugins/access.d.ts:65
redirectParam?
optional
redirectParam:string
重定向参数名
Defined in
packages/renderer/types/plugins/access.d.ts:43
session
session:
boolean
开启session, token 储存到cookie,关闭浏览器将登录失效
Defined in
packages/renderer/types/plugins/access.d.ts:9
storageKey
storageKey:
string
本地缓存key
Defined in
packages/renderer/types/plugins/access.d.ts:21
storagePrefix
storagePrefix:
string
本地缓存key前缀
Defined in
packages/renderer/types/plugins/access.d.ts:17
unauthorized?
optional
unauthorized:string
| () =>void
未授权页面路由路径
Defined in
packages/renderer/types/plugins/access.d.ts:29
unauthorizedCode?
optional
unauthorizedCode:number
未登录响应状态码
Defined in
packages/renderer/types/plugins/access.d.ts:47
unauthorizedMessage?
optional
unauthorizedMessage:string
未登录提示文本
Defined in
packages/renderer/types/plugins/access.d.ts:57
whiteList?
optional
whiteList:string
[] | (to
) =>boolean
路由拦截白名单
Defined in
packages/renderer/types/plugins/access.d.ts:25