636fba4e by xukangle

fix

1 parent 7ff732f6
......@@ -13,7 +13,7 @@ export const getTokenByCode = (params) => {
export const loginOut = () => {
return request({
url: `${import.meta.env.VITE_APP_USER_API_BASEURL}/user/logout`,
method: 'get'
method: 'post'
})
}
......
......@@ -65,9 +65,9 @@ const handleShowMessage = () => {
<div v-if="item.children && item.children.length !== 0" class="item-container"
:class="{ active: index === menuStore.actived }">
<div class="item" @click="switchTo(index)" v-preReClick>
<el-icon v-if="item.meta?.icon">
<!-- <el-icon v-if="item.meta?.icon">
<svg-icon :name="item.meta.icon" />
</el-icon>
</el-icon> -->
<span v-if="item.meta?.title">{{ item.meta.title }}</span>
</div>
</div>
......@@ -149,8 +149,8 @@ header {
background-color: inherit;
.logo {
width: 179px;
height: 48px;
width: 168px;
height: 45px;
}
span {
......
......@@ -36,6 +36,7 @@ function userCommand(command: 'home' | 'setting' | 'updatePwd' | 'hotkeys' | 'lo
function pro() {
window.open('https://hooray.gitee.io/fantastic-admin-pro-example/', '_blank')
}
const loaclStorageInfo: any = localStorage.getItem("userData")
onMounted(() => {
console.log('mounted', JSON.parse(userStore.userData).abbreviation)
})
......@@ -58,7 +59,7 @@ onMounted(() => {
</el-avatar>
<div class="v-uerinfo">
<div class="v-top">{{ userStore.userName }}</div>
<div class="v-top"> {{ JSON.parse(userStore.userData).abbreviation }}</div>
<div class="v-top"> {{ JSON.parse(loaclStorageInfo).abbreviation }}</div>
</div>
<div>
<el-icon>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!