perf(device-params-config-modal): reset activeTab brfore modal leave

This commit is contained in:
yangsy
2025-11-05 15:45:46 +08:00
parent 97e7780277
commit 7cf7f497f0

View File

@@ -133,6 +133,7 @@ const onAfterModalEnter = () => {
const onBeforeModalLeave = () => {
saveDeviceParams({ tabName: activeTabName.value, params: deviceConfigParams.value });
activeTabName.value = DeviceConfigParamPrefix.Switch;
};
const deviceConfigParams = ref<DeviceParamItem[]>([]);