From a6372ba559b591b8de28a8e5d22e615f64fc23ef Mon Sep 17 00:00:00 2001 From: D <3066417822@qq.com> Date: Fri, 1 Dec 2023 00:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89app.vue=E4=B8=AD?= =?UTF-8?q?=E7=9A=84socket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App.vue b/src/App.vue index 7fdaed2..f7baf5c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,6 +2,7 @@ export default { onLaunch: function () { console.log('App Launch') + /* this.$socket.connect({ url: "ws://127.0.0.1:8080/sc" }).then(res => { console.log("success"); this.$socket.onMessage(res => { @@ -15,6 +16,7 @@ export default { }) this.$socket.send({event:"on"}) }) + */ }, onShow: function () { console.log('App Show')