浏览代码

添加跳转

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>