Commit 29cb41f698211ae34dd64dce6d77ac14cf410ebd
1 parent
340f3133
replace header avatar with icon
Showing
3 changed files
with
3 additions
and
10 deletions
front-end/h5/src/store/modules/work.js
front-end/h5/src/utils/http.js
| ... | ... | @@ -7,14 +7,6 @@ message.config({ |
| 7 | 7 | |
| 8 | 8 | export const myMessage = message |
| 9 | 9 | |
| 10 | -export const client = axios.create({ | |
| 11 | - baseURL: '/v1', | |
| 12 | - responseType: 'json' | |
| 13 | -}) | |
| 14 | -export const baseClient = axios.create({ | |
| 15 | - responseType: 'json' | |
| 16 | -}) | |
| 17 | - | |
| 18 | 10 | export class AxiosWrapper { |
| 19 | 11 | // eslint-disable-next-line camelcase |
| 20 | 12 | constructor ({ name = 'default', loading_name, responseType = 'json', headers, dispatch, commit, router, successMsg, failMsg, successCallback, failCallback, customRequest }) { | ... | ... |
front-end/h5/src/views/work-manager/index.vue
| ... | ... | @@ -89,7 +89,7 @@ export default { |
| 89 | 89 | <a-layout-header class="header"> |
| 90 | 90 | <LogoOfHeader /> |
| 91 | 91 | {/* TODO we can show the plugins shortcuts here */} |
| 92 | - <a-dropdown style={{ float: 'right', background: 'transparent', margin: '16px 28px 16px 0' }}> | |
| 92 | + <a-dropdown style={{ float: 'right', background: 'transparent', margin: '0 28px 16px 0', cursor: 'pointer' }}> | |
| 93 | 93 | <a-menu slot="overlay" onClick={() => {}}> |
| 94 | 94 | <a-menu-item key="1"> |
| 95 | 95 | <span>someone@luban</span> |
| ... | ... | @@ -98,7 +98,7 @@ export default { |
| 98 | 98 | <a-menu-item key="2"><a-icon type="setting" />账号设置</a-menu-item> |
| 99 | 99 | <a-menu-item key="3"><a-icon type="logout" />退出登录</a-menu-item> |
| 100 | 100 | </a-menu> |
| 101 | - <a-avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" /> | |
| 101 | + <a-menu-item><a-icon type="user" style={{ color: 'white' }} /></a-menu-item> | |
| 102 | 102 | </a-dropdown> |
| 103 | 103 | <ExternalLinksOfHeader /> |
| 104 | 104 | </a-layout-header> | ... | ... |