From 3adf1d04a84d7548343202ef73acb62d060b6c78 Mon Sep 17 00:00:00 2001 From: srcrs Date: Fri, 28 Jul 2023 21:32:12 +0800 Subject: [PATCH] update --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index ec7eb49..462d506 100644 --- a/index.html +++ b/index.html @@ -102,7 +102,7 @@ feeds: [], }; }, - async created() { + async mounted() { const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'; const socket = new WebSocket(protocol + window.location.host + "/ws"); socket.onmessage = event => {