gemercheung преди 1 година
родител
ревизия
7e47b3584b
променени са 2 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 1 1
      src/App.vue
  2. 4 3
      src/components/chatRoom/index.vue

+ 1 - 1
src/App.vue

@@ -368,7 +368,7 @@
       {{ maxNumber }}
     </span> -->
     <span>
-      {{ t('base.debuginfo') }}V:1.2.0-g3,角色:{{ rtcStore.role }} rId:{{
+      {{ t('base.debuginfo') }}V:1.2.0-g4,角色:{{ rtcStore.role }} rId:{{
         rtcStore.roomId || browser.getURLParam('roomId')
       }}
       sceneIndex:{{ currentSceneIndex }} uid::

+ 4 - 3
src/components/chatRoom/index.vue

@@ -119,11 +119,12 @@
             type="text"
             maxlength="50"
             v-model.trim="text"
+            @keyup.enter="sendText"
             :placeholder="t('base.saySomething')"
           />
-          <span class="iconsend_icon" :class="{ disable: text == '' }" @click.stop="sendText">{{
-            t('base.send')
-          }}</span>
+          <span class="iconsend_icon" :class="{ disable: text == '' }" @click.stop="sendText"
+            >{{ t('base.send') }}</span
+          >
         </div>
       </div>
     </div>