gemercheung hai 1 ano
pai
achega
75c7354fbd
Modificáronse 2 ficheiros con 7 adicións e 3 borrados
  1. 1 1
      src/locales/lang/webslate/en.json
  2. 6 2
      src/views/room/list.vue

+ 1 - 1
src/locales/lang/webslate/en.json

@@ -384,7 +384,7 @@
         "passwordError": "Please set a full 4-digit password!",
         "authUserError": "Authorization failed, this account does not exist!",
         "authTipTitle": "Authorization Guidelines",
-        "authTipContent": "Please provide your complete account details after selecting [Add User] for authorization. After authorization, the associated  account connects to the [Li-Stream] mini-program and is allowed to initiate a Livestream using the studio.",
+        "authTipContent": "Please provide your complete account details after selecting [Add User] for authorization. After authorization, the associated  account connects to the [Li-Stream]  and is allowed to initiate a Livestream using the studio.",
         "usingTime": "Time of Use",
         "usingTime1": "Duratation",
         "usingTime2": "Created Time",

+ 6 - 2
src/views/room/list.vue

@@ -235,13 +235,17 @@ const webSyncRoom = async (room: Room) => {
   const m = scenes.sceneData[0].num
   let link = ''
   const isInternational = ref(import.meta.env.VITE_IS_INTERNATIONAL)
+  console.log('room', room)
+  let avatar = room.head || user.avatar
+
+  console.log('avatar', avatar)
   if (isInternational) {
     link = roomStore.getShareUrl({
       roomId: room.id,
       num: m,
       role: 'leader',
       name: encodeURIComponent(scenes.roomHostName),
-      avatar: encodeURIComponent(user.avatar) || '',
+      avatar: encodeURIComponent(avatar) || '',
       userId: String(user.userId || 1),
       isTour: '0',
       lang: unref(getLocale) || 'zh',
@@ -253,7 +257,7 @@ const webSyncRoom = async (room: Room) => {
       num: m,
       role: 'leader',
       name: encodeURIComponent(scenes.roomHostName),
-      avatar: encodeURIComponent(user.avatar) || '',
+      avatar: encodeURIComponent(avatar) || '',
       userId: String(user.userId || 1),
       isTour: '0',
       lang: unref(getLocale) || 'zh'