diff --git a/src/App.vue b/src/App.vue
index 45a899b1521119661ad8d281c33dcd187589e3e8..308926dd70afd3f1bab70c04030fcc77174a070f 100755
--- a/src/App.vue
+++ b/src/App.vue
@@ -246,6 +246,7 @@
+
@@ -36,7 +46,9 @@
isEnableNotification: true,
isEnableTouchNotice: true,
isEnableAtNotification: true,
- isDarkModelTemp: false
+ isDarkModelTemp: false,
+ isSpectrumSwitch: false,
+ isSpectrumSwitchType: 0
}
},
created() {
@@ -47,11 +59,13 @@
this.isEnableTouchNotice = localStorage.getItem('isEnableTouchNotice') != 1 ? true : false;
this.isEnableAtNotification = localStorage.getItem('isEnableAtNotification') != 1 ? true : false;
this.isDarkModelTemp = this.$parent.isDarkModel;
+ this.isSpectrumSwitch = localStorage.getItem('isSpectrumSwitch') != 1 ? true : false;
+ this.isSpectrumSwitchType = localStorage.getItem('isSpectrumSwitchType');
},
methods: {
/**
* @description: @通知切换事件
- * @param {null}
+ * @param {null}
* @return {null}
*/
isEnableAtNotificationChanged() {
@@ -60,7 +74,7 @@
},
/**
* @description: 声音切换事件
- * @param {null}
+ * @param {null}
* @return {null}
*/
isEnableNoticePlayerChanged() {
@@ -69,7 +83,7 @@
},
/**
* @description: 通知切换事件
- * @param {null}
+ * @param {null}
* @return {null}
*/
isEnableNotificationChanged() {
@@ -78,7 +92,7 @@
},
/**
* @description: 摸一摸通知切换事件
- * @param {null}
+ * @param {null}
* @return {null}
*/
isEnableTouchNoticeChanged() {
@@ -87,11 +101,29 @@
},
/**
* @description: 暗黑模式切换事件
- * @param {null}
+ * @param {null}
* @return {null}
*/
isDarkModelChanged() {
this.$parent.updateDarkModel(this.isDarkModelTemp);
+ },
+ /**
+ * @description: 频谱开关切换事件
+ * @param {null}
+ * @return {null}
+ */
+ isSpectrumSwitchChanged() {
+ localStorage.setItem('isSpectrumSwitch', this.isSpectrumSwitch ? 0 : 1);
+ this.$parent.updateSpectrumSwitch(this.isSpectrumSwitch);
+ },
+ /**
+ * @description: 频谱类型切换事件
+ * @param {null}
+ * @return {null}
+ */
+ isSpectrumSwitchTypeChanged(){
+ localStorage.setItem('isSpectrumSwitchType', this.isSpectrumSwitchType);
+ this.$parent.updateSpectrumSwitchType(this.isSpectrumSwitchType);
}
},
}
@@ -110,6 +142,10 @@
overflow-y: auto;
}
+ .bbbug_my_setting__form_spectrum_switch .el-radio-button__inner{
+ padding: 5px 10px;
+ }
+
.el-select {
display: block;
}
@@ -135,4 +171,4 @@
.bbbug_my_setting__clear_button:active {
background-color: red;
}
-
\ No newline at end of file
+