perf: 优化路由动画切换 1、切换出现双页面问题 2、切换出现横向和纵向滚动条问题
This commit is contained in:
@@ -9,7 +9,7 @@ import type {
|
||||
|
||||
import type { TabDefinition } from '@vben-core/typings';
|
||||
|
||||
import { markRaw, toRaw } from 'vue';
|
||||
import { markRaw, nextTick, toRaw } from 'vue';
|
||||
|
||||
import { preferences } from '@vben-core/preferences';
|
||||
import {
|
||||
@@ -415,7 +415,8 @@ export const useTabbarStore = defineStore('core-tabbar', {
|
||||
this.renderRouteView = false;
|
||||
startProgress();
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 200));
|
||||
await nextTick();
|
||||
// await new Promise((resolve) => setTimeout(resolve, 200));
|
||||
|
||||
this.excludeCachedTabs.delete(name as string);
|
||||
this.renderRouteView = true;
|
||||
|
||||
Reference in New Issue
Block a user