优霸定制删除天气

This commit is contained in:
fangxiang 2022-07-07 14:49:47 +08:00
parent 18a3884e15
commit f02cad430f
2 changed files with 28 additions and 10 deletions

View File

@ -399,15 +399,33 @@ export default defineComponent({
}, },
]; ];
if ( const refresh_signal_source_options = () => {
($store.state.device_attribute & Protocol.EDeviceAttribute.CustomISV) != if (
0 ($store.state.device_attribute & Protocol.EDeviceAttribute.CustomISV) ==
) { 0
signal_source_options.push({ ) {
label: $t.t("weather"), signal_source_options.push({
value: "EwindowType::Weather", label: $t.t("weather"),
}); value: "EwindowType::Weather",
} });
} else {
const index = signal_source_options.findIndex(
(element) => element && element.value == "EwindowType::Weather"
);
if (index != -1) {
signal_source_options.splice(index, 1);
}
}
};
refresh_signal_source_options();
watch(
() => $store.state.device_attribute,
(value) => {
refresh_signal_source_options();
}
);
const tree_nodes = computed({ const tree_nodes = computed({
get: () => $store.state.signal_source_tree, get: () => $store.state.signal_source_tree,

View File

@ -157,7 +157,7 @@ export default {
"select rootfs upgrade file": "Select Rootfs Upgrade File", "select rootfs upgrade file": "Select Rootfs Upgrade File",
"network setting": "Network Setting", "network setting": "Network Setting",
"output setting": "Output Setting", "output setting": "Output Setting",
"timing task": "Timing Task", "timing task": " Timing Task",
other: "Other", other: "Other",
"auto ip": "Auto IP", "auto ip": "Auto IP",
"ip address": "Ip Address", "ip address": "Ip Address",