pigx 单体 首页跳转

<template>
	<div class="layout-padding">
		<div class="layout-padding-auto layout-padding-view" >
			<div :style="'display:'+ panalVisible.zkt1"><zkt1 /></div>
			<div :style="'display:'+ panalVisible.sysLog"><sys-log /></div>
		</div>
	</div>
</template>

<script setup lang="ts" name="home">
import {useUserInfo} from "/@/stores/userInfo";

const CurrentUser = defineAsyncComponent(() => import('./current-user.vue'));
const Favorite = defineAsyncComponent(() => import('./favorite.vue'));
const ScheduleCalendar = defineAsyncComponent(() => import('./schedule/calendar.vue'));
const SysLog = defineAsyncComponent(() => import('./log-dashboard/sys-log.vue'));
const AuditLog = defineAsyncComponent(() => import('./log-dashboard/audit-log.vue'));
const NewsLetter = defineAsyncComponent(() => import('./newsletter.vue'));

const zkt1 =defineAsyncComponent(()=> import('/@/views/pro/platform/index.vue'));

const panalVisible = reactive({
    zkt1: 'none',
    sysLog: 'none'
})



onMounted(()=>{
    // panalVisible.zkt1 = 'block'
    // panalVisible.sysLog = 'none'

    panalVisible.zkt1 = 'none'
    panalVisible.sysLog = 'block'

    console.log(useUserInfo().userInfos)
});
</script>

posted @ 2023-11-21 14:26  寒冷的雨呢  阅读(62)  评论(0编辑  收藏  举报