We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7156e47 commit 7d8b8dbCopy full SHA for 7d8b8db
CHANGELOG.zh_CN.md
@@ -7,6 +7,7 @@
7
### 🐛 Bug Fixes
8
9
- 确保 `table action` 的值被正确更新
10
+- 修复页面切换的动画无法关闭
11
12
## 2.0.3 (2021-03-07)
13
src/layouts/page/transition.ts
@@ -18,12 +18,16 @@ export function getTransitionName({
18
def: string;
19
cacheTabs: string[];
20
}) {
21
+ if (!enableTransition) {
22
+ return null;
23
+ }
24
+
25
const isInCache = cacheTabs.includes(route.name as string);
26
const transitionName = 'fade-slide';
27
let name: string | null = transitionName;
28
29
if (openCache) {
- name = isInCache && route.meta.loaded && enableTransition ? transitionName : null;
30
+ name = isInCache && route.meta.loaded ? transitionName : null;
31
}
32
return name || route.meta.transitionName || def;
33
0 commit comments