feat(projects): 迁移多页签

This commit is contained in:
Soybean
2022-01-20 00:56:59 +08:00
parent cc290accc2
commit 28efbdbc70
26 changed files with 868 additions and 20 deletions

View File

@ -0,0 +1,23 @@
<template>
<hover-container class="w-64px h-full" tooltip-content="重新加载" placement="bottom-end" @click="handleRefresh">
<icon-mdi-refresh class="text-18px" :class="{ 'animate-spin': loading }" />
</hover-container>
</template>
<script setup lang="ts">
import { HoverContainer } from '@/components';
import { useAppStore } from '@/store';
import { useLoading } from '@/hooks';
const app = useAppStore();
const { loading, startLoading, endLoading } = useLoading();
function handleRefresh() {
startLoading();
app.reloadPage();
setTimeout(() => {
endLoading();
}, 1000);
}
</script>
<style scoped></style>