fix
Showing
3 changed files
with
7 additions
and
6 deletions
| ... | @@ -13,7 +13,7 @@ export const getTokenByCode = (params) => { | ... | @@ -13,7 +13,7 @@ export const getTokenByCode = (params) => { |
| 13 | export const loginOut = () => { | 13 | export const loginOut = () => { |
| 14 | return request({ | 14 | return request({ |
| 15 | url: `${import.meta.env.VITE_APP_USER_API_BASEURL}/user/logout`, | 15 | url: `${import.meta.env.VITE_APP_USER_API_BASEURL}/user/logout`, |
| 16 | method: 'get' | 16 | method: 'post' |
| 17 | }) | 17 | }) |
| 18 | } | 18 | } |
| 19 | 19 | ... | ... |
| ... | @@ -65,9 +65,9 @@ const handleShowMessage = () => { | ... | @@ -65,9 +65,9 @@ const handleShowMessage = () => { |
| 65 | <div v-if="item.children && item.children.length !== 0" class="item-container" | 65 | <div v-if="item.children && item.children.length !== 0" class="item-container" |
| 66 | :class="{ active: index === menuStore.actived }"> | 66 | :class="{ active: index === menuStore.actived }"> |
| 67 | <div class="item" @click="switchTo(index)" v-preReClick> | 67 | <div class="item" @click="switchTo(index)" v-preReClick> |
| 68 | <el-icon v-if="item.meta?.icon"> | 68 | <!-- <el-icon v-if="item.meta?.icon"> |
| 69 | <svg-icon :name="item.meta.icon" /> | 69 | <svg-icon :name="item.meta.icon" /> |
| 70 | </el-icon> | 70 | </el-icon> --> |
| 71 | <span v-if="item.meta?.title">{{ item.meta.title }}</span> | 71 | <span v-if="item.meta?.title">{{ item.meta.title }}</span> |
| 72 | </div> | 72 | </div> |
| 73 | </div> | 73 | </div> |
| ... | @@ -149,8 +149,8 @@ header { | ... | @@ -149,8 +149,8 @@ header { |
| 149 | background-color: inherit; | 149 | background-color: inherit; |
| 150 | 150 | ||
| 151 | .logo { | 151 | .logo { |
| 152 | width: 179px; | 152 | width: 168px; |
| 153 | height: 48px; | 153 | height: 45px; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | span { | 156 | span { | ... | ... |
| ... | @@ -36,6 +36,7 @@ function userCommand(command: 'home' | 'setting' | 'updatePwd' | 'hotkeys' | 'lo | ... | @@ -36,6 +36,7 @@ function userCommand(command: 'home' | 'setting' | 'updatePwd' | 'hotkeys' | 'lo |
| 36 | function pro() { | 36 | function pro() { |
| 37 | window.open('https://hooray.gitee.io/fantastic-admin-pro-example/', '_blank') | 37 | window.open('https://hooray.gitee.io/fantastic-admin-pro-example/', '_blank') |
| 38 | } | 38 | } |
| 39 | const loaclStorageInfo: any = localStorage.getItem("userData") | ||
| 39 | onMounted(() => { | 40 | onMounted(() => { |
| 40 | console.log('mounted', JSON.parse(userStore.userData).abbreviation) | 41 | console.log('mounted', JSON.parse(userStore.userData).abbreviation) |
| 41 | }) | 42 | }) |
| ... | @@ -58,7 +59,7 @@ onMounted(() => { | ... | @@ -58,7 +59,7 @@ onMounted(() => { |
| 58 | </el-avatar> | 59 | </el-avatar> |
| 59 | <div class="v-uerinfo"> | 60 | <div class="v-uerinfo"> |
| 60 | <div class="v-top">{{ userStore.userName }}</div> | 61 | <div class="v-top">{{ userStore.userName }}</div> |
| 61 | <div class="v-top"> {{ JSON.parse(userStore.userData).abbreviation }}</div> | 62 | <div class="v-top"> {{ JSON.parse(loaclStorageInfo).abbreviation }}</div> |
| 62 | </div> | 63 | </div> |
| 63 | <div> | 64 | <div> |
| 64 | <el-icon> | 65 | <el-icon> | ... | ... |
-
Please register or sign in to post a comment