Selaa lähdekoodia

修复供应商词条提交不了

zhengjinyi 2 vuotta sitten
vanhempi
commit
9b4bb2fc93

+ 1 - 1
src/main/resources/static/js/supplier-center/encyclopedia/edit.js

@@ -351,7 +351,7 @@ const edit = new Vue({
                     textInfoListStr: JSON.stringify(this.formData.textInfoList),
                     imageListStr: JSON.stringify(this.formData.imageList), // 概述图册集合
                     videoListStr:JSON.stringify(this.formData.videoList), // 视频集合
-                    labelIds: this.formData.labelIds.join(',') // 关联标签库列表
+                    labelIds: this.formData.labelIds ? this.formData.labelIds.join(',') : '' // 关联标签库列表
                 };
                 this.sensitiveWordsValidate(params)
             } catch (e) {