perf(device-params-config-modal): reset activeTab brfore modal leave
This commit is contained in:
@@ -133,6 +133,7 @@ const onAfterModalEnter = () => {
|
|||||||
|
|
||||||
const onBeforeModalLeave = () => {
|
const onBeforeModalLeave = () => {
|
||||||
saveDeviceParams({ tabName: activeTabName.value, params: deviceConfigParams.value });
|
saveDeviceParams({ tabName: activeTabName.value, params: deviceConfigParams.value });
|
||||||
|
activeTabName.value = DeviceConfigParamPrefix.Switch;
|
||||||
};
|
};
|
||||||
|
|
||||||
const deviceConfigParams = ref<DeviceParamItem[]>([]);
|
const deviceConfigParams = ref<DeviceParamItem[]>([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user