修复信息发布为空的问题
@@ -146,7 +146,7 @@
<view class="block">
<view class="cate" style="align-self: flex-start;">通知类型<span style="color: #FF0000">*</span></view>
<checkbox-group class="checkbox-group" name="type">
- <label wx:for="{{types3}}" wx:for-item="item" wx:key="item.value">
+ <label wx:for="{{types3}}" wx:for-item="item" wx:key="value">
<checkbox class="checkbox" value="{{item.value}}" checked="{{item.checked}}" color="#469298">{{item.value}}
</checkbox>
</label>
@@ -63,6 +63,7 @@ const msgToDb = function (item) {
if (item.tag) {
item.tag = item.tag.join()
}
+ return item
const dbToMsg = function (item) {