Browse Source

FIX

修复信息发布为空的问题
RegMs If 4 years ago
parent
commit
fc74181298

+ 1 - 1
miniprogram/pages/activityPublish/activityPublish.wxml

@@ -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>

+ 1 - 0
miniprogram/utils/util.js

@@ -63,6 +63,7 @@ const msgToDb = function (item) {
   if (item.tag) {
     item.tag = item.tag.join()
   }
+  return item
 }
 
 const dbToMsg = function (item) {