@ledvance/ui-biz-bundle 1.1.46 → 1.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -162,9 +162,17 @@ const FlagPage = () => {
|
|
|
162
162
|
if (res.success) {
|
|
163
163
|
state.flags = cloneDeep(newScene)
|
|
164
164
|
setFlags(cloneDeep(newScene))
|
|
165
|
-
if(mode === 'del'
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
if(mode === 'del'){
|
|
166
|
+
const isDrawTool = !!(params.isCeilingLight || params.isStripLight)
|
|
167
|
+
if(!isDrawTool && (dps[params.workModeCode] !== WORK_MODE.SCENE || currentMood.id !== flagId)){
|
|
168
|
+
return {
|
|
169
|
+
success: true
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
if(isDrawTool && !flagMode.flagMode){
|
|
173
|
+
return {
|
|
174
|
+
success: true
|
|
175
|
+
}
|
|
168
176
|
}
|
|
169
177
|
}
|
|
170
178
|
if(mood){
|