mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 12:58:55 +08:00
feat: 优化主页右上角下拉功页的导入
This commit is contained in:
parent
d17c5489af
commit
f3c0db99aa
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user