feat(short-drama-agent-front): 新增路由淡入淡出过渡
This commit is contained in:
1 parent
8674ba0c83
commit
c7a6b12261
3 files changed
+39
-2
No files matched your search
@@ -411,7 +411,18 @@ onScopeDispose(() => {
|
||||
@quality-saved="context.refresh()"
|
||||
/>
|
||||
<div class="project-view">
|
||||
<RouterView v-if="context.project.value?.id === id && currentAccess?.enabled" :key="id" />
|
||||
<!-- 以下是工作区路由淡入淡出模块,筛选和定位参数变化时保留当前页面。 -->
|
||||
<RouterView
|
||||
v-if="context.project.value?.id === id && currentAccess?.enabled"
|
||||
:key="id"
|
||||
v-slot="{ Component, route: viewRoute }"
|
||||
>
|
||||
<Transition name="route-fade" mode="out-in">
|
||||
<div :key="viewRoute.path" class="route-view">
|
||||
<component :is="Component" />
|
||||
</div>
|
||||
</Transition>
|
||||
</RouterView>
|
||||
<EmptyState
|
||||
v-else-if="context.project.value?.id === id && !isProjectInitialLoading"
|
||||
class="project-access-gate"
|
||||
|
||||
Reference in new issue
Block a user