feat: 优化主页右上角下拉功页的导入

This commit is contained in:
lbw 2023-03-31 21:26:29 +08:00
parent d17c5489af
commit f3c0db99aa
2 changed files with 3 additions and 6 deletions

View File

@ -68,10 +68,10 @@
</template>
<script setup lang="ts" name="layoutBreadcrumbUser">
import { logout } from '/@/api/login';
import { ElMessageBox, ElMessage } from 'element-plus';
import screenfull from 'screenfull';
import { useI18n } from 'vue-i18n';
import { storeToRefs } from 'pinia';
import { useUserInfo } from '/@/stores/userInfo';
import { useThemeConfig } from '/@/stores/themeConfig';
import other from '/@/utils/other';
@ -84,11 +84,8 @@ import { useMsg } from '/@/stores/msg';
const GlobalWebsocket = defineAsyncComponent(() => import('/@/components/Websocket/index.vue'));
const UserNews = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/userNews.vue'));
const Search = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/search.vue'));
const PersonalDrawer = defineAsyncComponent(() => import('/@/views/admin/user/personal.vue'));
import { logout } from '/@/api/login';
//
const { locale, t } = useI18n();
const router = useRouter();

View File

@ -3,7 +3,7 @@
<div style="display: flex; justify-content: space-between">
<div style="display: flex">
<el-avatar style="width: 60px; height: 60px" shape="circle" :size="100" fit="cover" :src="userData.avatar" />
<div class="snowy-index-card-left-one-username">
<div class="info">
<span style="font-weight: 600; margin: 2px; font-size: 18px">{{ userData.name }}</span>
<span style="color: #6d737b; margin: 2px">{{ userData.deptName }} | {{ userData.postName }}</span>
</div>
@ -59,7 +59,7 @@ const initUserInfo = async (userId: any): Promise<void> => {
</script>
<style scoped>
.snowy-index-card-left-one-username {
.info {
margin-left: 8px;
display: flex;
flex-direction: column;