chore: fix type error

This commit is contained in:
Uyarn 2022-03-24 11:42:48 +08:00
parent 8440b7cabe
commit f73de01e58

View File

@ -9,7 +9,7 @@
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { computed, ComputedRef } from 'vue';
import { useTabsRouterStore } from '@/store';
const aliveViews = computed(() => {
@ -17,7 +17,7 @@ const aliveViews = computed(() => {
const { tabRouters } = tabsRouterStore;
return tabRouters.filter((route) => route.isAlive).map((route) => route.name);
});
}) as ComputedRef<string[]>;
const isRefreshing = computed(() => {
const tabsRouterStore = useTabsRouterStore();