From 031d83828a20b7bc56c1723fe4eaa67fd9d8cd07 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 14 十二月 2023 00:44:12 +0800 Subject: [PATCH] update 代码规范化 --- src/views/index.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 7f658d8..efb8b50 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -99,13 +99,13 @@ import { initWebSocket } from '@/utils/websocket'; onMounted(() => { - let protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://' - initWebSocket(protocol + window.location.host + import.meta.env.VITE_APP_BASE_API + "/resource/websocket"); + let protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'; + initWebSocket(protocol + window.location.host + import.meta.env.VITE_APP_BASE_API + '/resource/websocket'); }); -const goTarget = (url:string) => { - window.open(url, '__blank') -} +const goTarget = (url: string) => { + window.open(url, '__blank'); +}; </script> <style scoped lang="scss"> @@ -131,7 +131,7 @@ margin: 0; } - font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: 'open sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; color: #676a6c; overflow-x: hidden; -- Gitblit v1.9.3