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

feat: logo显示功能完成

parent 754ac5e9
...@@ -68,6 +68,8 @@ loadGuards(guards, { router, store, i18n, message: Vue.prototype.$message }); ...@@ -68,6 +68,8 @@ loadGuards(guards, { router, store, i18n, message: Vue.prototype.$message });
loadResponseInterceptor({ router }); loadResponseInterceptor({ router });
Vue.prototype.$fileUrl = 'http://platform.kuopu.net:9300/';
new Vue({ new Vue({
router, router,
store, store,
......
<template> <template>
<a-dropdown> <a-dropdown>
<div class="tw-inline-flex tw-cursor-pointer tw-items-center"> <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> <span>{{ userInfo.userName }}</span>
</div> </div>
<a-menu style="width: 150px" slot="overlay"> <a-menu style="width: 150px" slot="overlay">
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<img <img
style="width: 100px;height: 100px" style="width: 100px;height: 100px"
class="tw-max-w-full tw-max-h-full tw-rounded-full tw-my-4" 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" /> <my-upload v-model="form.userAvatar" />
</div> </div>
...@@ -53,6 +53,7 @@ export default { ...@@ -53,6 +53,7 @@ export default {
}, },
watch: { watch: {
'$store.state.userInfo'(userInfo) { '$store.state.userInfo'(userInfo) {
console.log('userInfo');
this.form.userName = userInfo.userName; this.form.userName = userInfo.userName;
this.form.fixedPhone = userInfo.fixedPhone; this.form.fixedPhone = userInfo.fixedPhone;
this.form.mobilePhone = userInfo.mobilePhone; 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