| | |
| | | isRouterAlive.value = false; |
| | | nextTick(() => { |
| | | isRouterAlive.value = true; |
| | | message.success(formatMessage('common.success', '加载成功')); |
| | | // message.success(formatMessage('common.success', '加载成功')); |
| | | }) |
| | | } catch (error) { |
| | | message.error(formatMessage('common.fail', '加载失败')); |
| | |
| | | </div> |
| | | <router-view v-slot="{ Component, route }" v-if="isRouterAlive"> |
| | | <keep-alive :include="routerCache"> |
| | | <component :is="Component" /> |
| | | <component :is="Component" @pageReload="reloadTabs" /> |
| | | </keep-alive> |
| | | </router-view> |
| | | </a-layout-content> |