Commit 7aa0fe42 authored by 水落(YangLei)'s avatar 水落(YangLei)

feat: logo显示功能完成

parent 754ac5e9
......@@ -87,4 +87,4 @@
"git add"
]
}
}
\ No newline at end of file
}
......@@ -68,6 +68,8 @@ loadGuards(guards, { router, store, i18n, message: Vue.prototype.$message });
loadResponseInterceptor({ router });
Vue.prototype.$fileUrl = 'http://platform.kuopu.net:9300/';
new Vue({
router,
store,
......
<template>
<a-dropdown>
<div class="tw-inline-flex tw-cursor-pointer tw-items-center">
<a-avatar class="tw-mr-3" size="small" shape="circle" :src="userInfo.userAvatar" />
<a-avatar
class="tw-mr-3"
size="small"
shape="circle"
:src="`${$fileUrl}${userInfo.userAvatar}`"
/>
<span>{{ userInfo.userName }}</span>
</div>
<a-menu style="width: 150px" slot="overlay">
......
......@@ -25,7 +25,7 @@
<img
style="width: 100px;height: 100px"
class="tw-max-w-full tw-max-h-full tw-rounded-full tw-my-4"
:src="`//${form.userAvatar}`"
:src="`${$fileUrl}${form.userAvatar}`"
/>
<my-upload v-model="form.userAvatar" />
</div>
......@@ -53,6 +53,7 @@ export default {
},
watch: {
'$store.state.userInfo'(userInfo) {
console.log('userInfo');
this.form.userName = userInfo.userName;
this.form.fixedPhone = userInfo.fixedPhone;
this.form.mobilePhone = userInfo.mobilePhone;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment