diff --git a/src/App.vue b/src/App.vue index 17c3dbd..fbc3784 100755 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,7 @@ - + - - - - - - + +
+ {{ internalValue ? activeText : inactiveText + }} + + + + + + +
+
@@ -67,13 +64,13 @@ export default { // }, // }, watch: { - value(newVal) { - this.internalValue = newVal; - }, - internalValue(newVal) { - this.$emit('input', newVal); + value(newVal) { + this.internalValue = newVal; + }, + internalValue(newVal) { + this.$emit('input', newVal); + }, }, - }, methods: { // 处理 switch 状态变化 async handleChange(value) { @@ -96,17 +93,18 @@ export default { }; \ No newline at end of file diff --git a/src/views/SiteSetting.vue b/src/views/SiteSetting.vue index 310c2d2..fdec73e 100644 --- a/src/views/SiteSetting.vue +++ b/src/views/SiteSetting.vue @@ -1,9 +1,9 @@