mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 08:46:39 +08:00
chore: fix type error
This commit is contained in:
parent
8440b7cabe
commit
f73de01e58
|
@ -9,7 +9,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue';
|
import { computed, ComputedRef } from 'vue';
|
||||||
import { useTabsRouterStore } from '@/store';
|
import { useTabsRouterStore } from '@/store';
|
||||||
|
|
||||||
const aliveViews = computed(() => {
|
const aliveViews = computed(() => {
|
||||||
|
@ -17,7 +17,7 @@ const aliveViews = computed(() => {
|
||||||
const { tabRouters } = tabsRouterStore;
|
const { tabRouters } = tabsRouterStore;
|
||||||
|
|
||||||
return tabRouters.filter((route) => route.isAlive).map((route) => route.name);
|
return tabRouters.filter((route) => route.isAlive).map((route) => route.name);
|
||||||
});
|
}) as ComputedRef<string[]>;
|
||||||
|
|
||||||
const isRefreshing = computed(() => {
|
const isRefreshing = computed(() => {
|
||||||
const tabsRouterStore = useTabsRouterStore();
|
const tabsRouterStore = useTabsRouterStore();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user