|
@@ -5,7 +5,7 @@
|
|
|
<div class="user-header">
|
|
<div class="user-header">
|
|
|
<div class="user-avatar-section">
|
|
<div class="user-avatar-section">
|
|
|
<div class="user-avatar-large">
|
|
<div class="user-avatar-large">
|
|
|
- <img v-if="userInfo.avatar" :src="userInfo.avatar" :alt="userInfo.name" />
|
|
|
|
|
|
|
+ <img v-if="cachedHeadImg" :src="cachedHeadImg" :alt="userInfo.name" />
|
|
|
<el-icon v-else :size="60">
|
|
<el-icon v-else :size="60">
|
|
|
<Avatar />
|
|
<Avatar />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
@@ -742,7 +742,7 @@ import {
|
|
|
import {} from "@/api/modules/dynamicManagement";
|
|
import {} from "@/api/modules/dynamicManagement";
|
|
|
import { useUserStore } from "@/stores/modules/user";
|
|
import { useUserStore } from "@/stores/modules/user";
|
|
|
import FriendCoupon from "./friendCoupon.vue";
|
|
import FriendCoupon from "./friendCoupon.vue";
|
|
|
-
|
|
|
|
|
|
|
+import { localGet } from "@/utils";
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
|
|
|
|
@@ -896,6 +896,9 @@ const userInfo = reactive<UserInfo>({
|
|
|
likeCount: 10
|
|
likeCount: 10
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+// 头像优先取缓存 geeker-user 的 headImg
|
|
|
|
|
+const cachedHeadImg = computed(() => localGet("geeker-user")?.userInfo?.headImg || userInfo.avatar || "");
|
|
|
|
|
+
|
|
|
// 对话框标题
|
|
// 对话框标题
|
|
|
const relationDialogTitle = computed(() => {
|
|
const relationDialogTitle = computed(() => {
|
|
|
const titles = {
|
|
const titles = {
|