mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 添加多页签右键菜单
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user