fix: 处理动画引起的警报问题

This commit is contained in:
ZhuRui
2026-07-29 11:03:54 +08:00
parent 04ff2fb4df
commit 1c432ea890
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -123,8 +123,8 @@ a {
height: 100%; height: 100%;
min-height: 0; min-height: 0;
transition: transition:
opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.22s cubic-bezier(0.4, 0, 0.2, 1); transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
} }
.page-fade-slide-enter-from { .page-fade-slide-enter-from {
+1 -1
View File
@@ -249,7 +249,7 @@ export default defineComponent({
v-slots={{ v-slots={{
default: ({ Component, route }: any) => ( default: ({ Component, route }: any) => (
<KeepAlive include={cachedViews.value}> <KeepAlive include={cachedViews.value}>
<Transition name="page-fade-slide" mode="out-in"> <Transition name="page-fade-slide">
{Component ? h(Component, { key: route.path }) : null} {Component ? h(Component, { key: route.path }) : null}
</Transition> </Transition>
</KeepAlive> </KeepAlive>