Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
6676c950
提交
6676c950
authored
11月 10, 2020
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix the original page after login expired
上级
7675a9f6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
11 行删除
+14
-11
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+2
-0
permissionGuard.ts
src/router/guard/permissionGuard.ts
+11
-2
yarn.lock
yarn.lock
+1
-9
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
6676c950
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
### 🐛 Bug Fixes
### 🐛 Bug Fixes
-
修复多个富文本编辑器只显示一个
-
修复多个富文本编辑器只显示一个
-
修复登录过期后重新登录未跳转原来页面的
-
修复 window 系统动态引入错误
## 2.0.0-rc.9 (2020-11-9)
## 2.0.0-rc.9 (2020-11-9)
...
...
src/router/guard/permissionGuard.ts
浏览文件 @
6676c950
...
@@ -40,8 +40,17 @@ export function createPermissionGuard(router: Router) {
...
@@ -40,8 +40,17 @@ export function createPermissionGuard(router: Router) {
return
;
return
;
}
}
// redirect login page
// redirect login page
const
redirectPath
=
to
.
path
?
`
${
LOGIN_PATH
}
?redirect=
${
to
.
path
}
`
:
LOGIN_PATH
;
const
redirectData
:
{
path
:
string
;
replace
:
boolean
;
query
?:
{
[
key
:
string
]:
string
}
}
=
{
next
(
redirectPath
);
path
:
LOGIN_PATH
,
replace
:
true
,
};
if
(
to
.
path
)
{
redirectData
.
query
=
{
...
redirectData
.
query
,
redirect
:
to
.
path
,
};
}
next
(
redirectData
);
return
;
return
;
}
}
if
(
permissionStore
.
getIsDynamicAddedRouteState
)
{
if
(
permissionStore
.
getIsDynamicAddedRouteState
)
{
...
...
yarn.lock
浏览文件 @
6676c950
...
@@ -6944,7 +6944,7 @@ rollup@^1.31.1:
...
@@ -6944,7 +6944,7 @@ rollup@^1.31.1:
"@types/node" "*"
"@types/node" "*"
acorn "^7.1.0"
acorn "^7.1.0"
rollup@^2.32.1
, rollup@^2.33.1
:
rollup@^2.32.1:
version "2.33.1"
version "2.33.1"
resolved "https://registry.npmjs.org/rollup/-/rollup-2.33.1.tgz#802795164164ee63cd47769d8879c33ec8ae0c40"
resolved "https://registry.npmjs.org/rollup/-/rollup-2.33.1.tgz#802795164164ee63cd47769d8879c33ec8ae0c40"
integrity sha512-uY4O/IoL9oNW8MMcbA5hcOaz6tZTMIh7qJHx/tzIJm+n1wLoY38BLn6fuy7DhR57oNFLMbDQtDeJoFURt5933w==
integrity sha512-uY4O/IoL9oNW8MMcbA5hcOaz6tZTMIh7qJHx/tzIJm+n1wLoY38BLn6fuy7DhR57oNFLMbDQtDeJoFURt5933w==
...
@@ -8162,14 +8162,6 @@ vfile@^4.0.0:
...
@@ -8162,14 +8162,6 @@ vfile@^4.0.0:
unist-util-stringify-position "^2.0.0"
unist-util-stringify-position "^2.0.0"
vfile-message "^2.0.0"
vfile-message "^2.0.0"
vite-plugin-cdn@^1.0.0-beta.3:
version "1.0.0-beta.3"
resolved "https://registry.npmjs.org/vite-plugin-cdn/-/vite-plugin-cdn-1.0.0-beta.3.tgz#5846e80debba5e3968169931f5cba86aea5701cd"
integrity sha512-1oepxSSr8rROFhyP93EWVasKHAAbGfp3QyUrUmJW/zU80CvFPyHATckk8vy08pMiulErSqATjfofTJ+TxP4wkw==
dependencies:
lodash "^4.17.20"
rollup "^2.33.1"
vite-plugin-html@^1.0.0-beta.2:
vite-plugin-html@^1.0.0-beta.2:
version "1.0.0-beta.2"
version "1.0.0-beta.2"
resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-1.0.0-beta.2.tgz#f30cdba4ca70469e62b770e32c407ce5d7f9b544"
resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-1.0.0-beta.2.tgz#f30cdba4ca70469e62b770e32c407ce5d7f9b544"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论