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>
择善人而交,择善书而读,择善言而听,择善行而从。