From 51ecc231aa4f73a5071e188b4528ab59d730b07f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 05 九月 2023 19:14:30 +0800 Subject: [PATCH] 移除视频分析相关功能, 默认自动登录 --- src/pages/settings/components/switchBar.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/components/switchBar.vue b/src/pages/settings/components/switchBar.vue index 831d56c..d68bec7 100644 --- a/src/pages/settings/components/switchBar.vue +++ b/src/pages/settings/components/switchBar.vue @@ -2,7 +2,7 @@ <div class="switch-bar"> <div class="name">{{ barName }}</div> <el-switch - v-model="value" + v-model="barValue" active-color="var(--colorCard)" :width="30" @change="switchChange" @@ -13,10 +13,21 @@ <script> export default { + name: "switchBar", props: ["barName", "value"], methods: { switchChange(val) { this.$emit("switchChange", val); + }, + }, + computed: { + barValue: { + get() { + return this.value; + }, + set(newValue) { + return newValue; + }, }, }, }; @@ -28,7 +39,7 @@ height: 50px; padding: 0 25px; justify-content: space-between; -border-radius: 8px; + border-radius: 8px; margin-bottom: 4px; .el-switch.is-checked .el-switch__core::after { -- Gitblit v1.8.0