lyc-dev #44

Merged
lyc merged 4 commits from lyc-dev into main 2024-07-18 17:54:05 +08:00
3 changed files with 3 additions and 12 deletions
Showing only changes of commit c8389645af - Show all commits

View File

@ -24,7 +24,7 @@
<div class="avatar-container">
<el-dropdown @command="handleCommand" class="right-menu-item hover-effect" trigger="click">
<div class="avatar-wrapper">
<img :src="userImg" class="user-avatar" style="float: left;" />
<img :src="userStore.user.avatar" class="user-avatar" style="float: left;" />
<div style="margin-top: 18px; font-size: 0.8em;"> {{ userStore.user.nickName }}</div>
</div>
<template #dropdown>
@ -53,7 +53,6 @@ const { ipcRenderer } = window.electron || {}
const isMaxSize = ref(false)
const router = useRouter()
const currentRoute = ref('')
const userImg = new URL(userStore.user.avatar, import.meta.url)
const menus = ref([
{

View File

@ -4,20 +4,18 @@ import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhLocale from 'element-plus/es/locale/lang/zh-cn'
import './utils/messageConfig'
import 'element-plus/dist/index.css'
import './assets/iconfont/iconfont.css'
import './assets/iconfont/iconfont'
import 'virtual:windi.css'
import { store } from '@/store'
import App from './App.vue'
import router from './router'
const app = createApp(App)
app.use(router)
.use(store)
.use(ElementPlus, { locale: zhLocale }).mount('#app')

View File

@ -1,6 +0,0 @@
import { ElMessage } from 'element-plus';
ElMessage.defaultOptions = {
plain : true
}