|
@@ -987,24 +987,46 @@ export default {
|
|
|
if (hotData.visiblePanos) {
|
|
|
delete hotData.visiblePanos
|
|
|
}
|
|
|
- let data = {
|
|
|
- sid: hotData.sid,
|
|
|
- hotData: JSON.stringify(hotData),
|
|
|
+ let data = null
|
|
|
+ if (hotData.brandId) {
|
|
|
+ data = {
|
|
|
+ sid: hotData.sid,
|
|
|
+ brandId: hotData.brandId,
|
|
|
+ hotData: JSON.stringify(hotData),
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ data = {
|
|
|
+ sid: hotData.sid,
|
|
|
+ hotData: JSON.stringify(hotData),
|
|
|
+ }
|
|
|
}
|
|
|
tagList.push(data)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
// state.changeTagsList = []
|
|
|
} else {
|
|
|
- tagList.push({
|
|
|
- sid: hotData.sid,
|
|
|
- hotData: JSON.stringify({
|
|
|
- ...hotData,
|
|
|
- products: [],
|
|
|
- }),
|
|
|
- ...addparams,
|
|
|
- })
|
|
|
+ if (hotData.brandId) {
|
|
|
+ tagList.push({
|
|
|
+ sid: hotData.sid,
|
|
|
+ brandId: hotData.brandId,
|
|
|
+ hotData: JSON.stringify({
|
|
|
+ ...hotData,
|
|
|
+ products: [],
|
|
|
+ }),
|
|
|
+ ...addparams,
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ tagList.push({
|
|
|
+ sid: hotData.sid,
|
|
|
+ hotData: JSON.stringify({
|
|
|
+ ...hotData,
|
|
|
+ products: [],
|
|
|
+ }),
|
|
|
+ ...addparams,
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
console.error(hotData)
|