|
@@ -34,6 +34,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
defineOptions({name: 'informationSettingsComponents-enterpriseLogo'})
|
|
|
+import { useUserStore } from '@/store/user'; const userStore = useUserStore()
|
|
|
import { ref } from 'vue'
|
|
|
import { uploadFile } from '@/api/common'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
@@ -44,7 +45,10 @@ const { t } = useI18n()
|
|
|
let squareImageUrl = ref('')
|
|
|
const getInfo = async () => {
|
|
|
const data = await getEnterpriseBaseInfo()
|
|
|
- if (data && data?.logoUrl) squareImageUrl.value = data.logoUrl
|
|
|
+ if (data && data?.logoUrl) {
|
|
|
+ squareImageUrl.value = data.logoUrl
|
|
|
+ await userStore.getEnterpriseInfo() // 更新当前登录的企业用户信息
|
|
|
+ }
|
|
|
}
|
|
|
getInfo()
|
|
|
|