gemercheung 1 år sedan
förälder
incheckning
26d7984853

+ 3 - 2
src/api/room.ts

@@ -35,7 +35,7 @@ export type SRoom = {
   head?: string
   gps?: string
   video?: string[]
-  isHomeOwner?:boolean
+  isHomeOwner?: boolean
 }
 
 export interface RoomScene {
@@ -91,7 +91,8 @@ const serverToLocal = (sroom: SRoom): Room => ({
   scenesAlbum: sroom.image,
   // scenesAvatar: sroom.head,
   scenesVideo: sroom.video?.length ? sroom.video[0] : '',
-  isHomeOwner:sroom.isHomeOwner
+  isHomeOwner: sroom.isHomeOwner,
+  head: sroom.head,
 })
 const localToServer = (room: Room): SRoom => ({
   roomId: room.id,

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

@@ -319,7 +319,8 @@
         "using": "In use",
         "end": "End",
         "error8001": "Please check and input accurate account info!",
-        "error8005": "The current room cannot be authorized for you!"
+        "error8005": "The current room cannot be authorized for you!",
+        "view": "view"
     },
     "code": {
         "del": "Scene deleted",

+ 2 - 1
src/locales/lang/webslate/zh.json

@@ -56,7 +56,8 @@
         "using": "使用中",
         "end": "已结束",
         "error8001": "账号不存在,请核对后输入!",
-        "error8005": "不能授权给本人!"
+        "error8005": "不能授权给本人!",
+        "view": "查看"
     },
     "code": {
         "del": "场景被删",

+ 1 - 1
src/views/room/sign.vue

@@ -38,7 +38,7 @@
             >
               <i class="iconfont icon-works_editor" />
               <!-- 编辑 -->
-              {{ !disabled ? t('base.edit') : '查看' }}
+              {{ !disabled ? t('base.edit') : t('base.view') }}
               <!-- <edit-outlined /> -->
             </span>
             <!-- <span