From 1bcd216487d81d4740546381e7c3fc01328f0657 Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 11 May 2023 10:40:00 +0800 Subject: [PATCH] add websocket --- src/assets/styles/functions.scss | 5 ++ .../boxes/subcomponents/TableStatus.vue | 4 +- src/components/charts/BarChart.vue | 3 +- src/components/layout/Main.vue | 9 ++- src/utils/wsClass.js | 70 +++++++++++++++++++ 5 files changed, 87 insertions(+), 4 deletions(-) create mode 100644 src/utils/wsClass.js diff --git a/src/assets/styles/functions.scss b/src/assets/styles/functions.scss index c5e5f89..cff9e01 100644 --- a/src/assets/styles/functions.scss +++ b/src/assets/styles/functions.scss @@ -8,3 +8,8 @@ @function w($width) { @return $width * ($actual_width / $design_width); } + +@function adjust($v) { + // 所有单位乘以 2 + @return $v * 2; +} diff --git a/src/components/boxes/subcomponents/TableStatus.vue b/src/components/boxes/subcomponents/TableStatus.vue index 4688c01..fc9383f 100644 --- a/src/components/boxes/subcomponents/TableStatus.vue +++ b/src/components/boxes/subcomponents/TableStatus.vue @@ -21,7 +21,9 @@ export default { }; -