Browse Source

修改web文件创建接口

aaa 3 năm trước cách đây
mục cha
commit
f9aecb488e
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/views/articleManagement/articleCreate.vue

+ 1 - 2
src/views/articleManagement/articleCreate.vue

@@ -191,7 +191,6 @@ export default {
         )
         .then((res) => {
           if (res && res.data.length !== 0) {
-            res.data.shift();
             this.articleChildClassArr = res.data;
             this.articleChildClass = this.articleChildClassArr[0];
             this.form.setFieldsValue({
@@ -272,7 +271,7 @@ export default {
                 type: 'ARTICLE',
                 contents: that.content,
                 tages: [that.learnDate],
-                engineerTypes: [that.engineerType],
+                engineerTypes: [that.engineerType.id],
                 links: [],
               };
               that.$_http