feat(projects): 添加多页签右键菜单

This commit is contained in:
Soybean
2021-09-20 18:55:42 +08:00
parent 3cfa0f103c
commit d6f5237c8c
33 changed files with 362 additions and 168 deletions

View File

@ -6,13 +6,20 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import { onActivated } from 'vue';
import { useLoading } from '@/hooks';
import { DataCard, NavCard } from './components';
const loading = ref(true);
const { loading, startLoading, endLoading } = useLoading(true);
setTimeout(() => {
loading.value = false;
}, 1500);
function handleEndLoading() {
startLoading();
setTimeout(() => {
endLoading();
}, 1000);
}
onActivated(() => {
handleEndLoading();
});
</script>
<style scoped></style>