소스 검색

添加跳转

wkw 1 주 전
부모
커밋
785cb6bd88
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      src/views/im/chat/index.vue

+ 10 - 1
src/views/im/chat/index.vue

@@ -142,8 +142,17 @@ const setupKeyboardListeners = async () => {
   });
 };
 
+const goBack = () => {
+  router.push("im");
+};
+const goDetail = () => {
+  router.push("detail");
+}
+
 onUnmounted(() => {
-  Keyboard.removeAllListeners();
+  if (Capacitor.getPlatform() !== 'web') {
+    Keyboard.removeAllListeners();
+  }
 });
 </script>