2021-09-09 18:40:38 +08:00
|
|
|
<template>
|
2021-10-25 11:56:17 +08:00
|
|
|
<n-space :vertical="true" :size="16">
|
2021-11-04 23:11:20 +08:00
|
|
|
<header-info />
|
2021-10-25 11:56:17 +08:00
|
|
|
</n-space>
|
2021-09-09 18:40:38 +08:00
|
|
|
</template>
|
2021-09-11 02:34:36 +08:00
|
|
|
<script lang="ts" setup>
|
2021-11-04 23:11:20 +08:00
|
|
|
import { onActivated } from 'vue';
|
|
|
|
import { NSpace } from 'naive-ui';
|
|
|
|
import { useLoading } from '@/hooks';
|
|
|
|
import { HeaderInfo } from './components';
|
2021-11-03 00:25:01 +08:00
|
|
|
|
2021-11-04 23:11:20 +08:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
const { loading, startLoading, endLoading } = useLoading(true);
|
2021-11-03 00:25:01 +08:00
|
|
|
|
2021-11-04 23:11:20 +08:00
|
|
|
function handleEndLoading() {
|
|
|
|
startLoading();
|
|
|
|
setTimeout(() => {
|
|
|
|
endLoading();
|
|
|
|
}, 800);
|
|
|
|
}
|
|
|
|
onActivated(() => {
|
|
|
|
handleEndLoading();
|
|
|
|
});
|
2021-09-11 02:34:36 +08:00
|
|
|
</script>
|
2021-09-09 18:40:38 +08:00
|
|
|
<style scoped></style>
|