@ledvance/ui-biz-bundle 1.1.45 → 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){
|
|
@@ -119,8 +119,9 @@ const FantasyMoodEditPage = () => {
|
|
|
119
119
|
}
|
|
120
120
|
if (list.length > 0) {
|
|
121
121
|
if (isDelete && workMode === SCENE) {
|
|
122
|
-
if(currentMood.id
|
|
123
|
-
|
|
122
|
+
if(currentMood.id === fantasyId) {
|
|
123
|
+
await setFantasyScene(list[0])
|
|
124
|
+
}
|
|
124
125
|
} else {
|
|
125
126
|
await setFantasyScene(currentMood)
|
|
126
127
|
}
|