diff --git a/src/layout/components/Tabs/index.vue b/src/layout/components/Tabs/index.vue index 74817f0..c5cc665 100644 --- a/src/layout/components/Tabs/index.vue +++ b/src/layout/components/Tabs/index.vue @@ -17,35 +17,36 @@ />
- -
- -
+ + + + + +
+ +
+
@@ -78,7 +79,12 @@ const onDelete = (key: string) => { }; // 刷新当前页 +const rotateOpen = ref(false); const refresh = () => { + rotateOpen.value = true; + setTimeout(() => { + rotateOpen.value = false; + }, 500); const themeStore = useThemeConfig(); themeStore.setRefreshPage(false); currentRoute.value.meta.keepAlive && routerStore.removeRouteName(currentRoute.value.name); @@ -154,6 +160,10 @@ const closeOther = (type: string) => { margin-right: $margin; color: $color-text-2; } + .refresh { + transition: transform 0.5s; + transform: rotate(360deg); + } } } :deep(.arco-tabs-nav-tab) {