一盏薄酒 2 年之前
父節點
當前提交
92f4b9ba26
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      src/views/collection/addcollections/index.vue

+ 1 - 8
src/views/collection/addcollections/index.vue

@@ -122,14 +122,7 @@ export default {
     submitForm(formName) {
       this.$refs[formName].validate((valid) => {
         if (valid) {
-          addCollections({
-            addName: this.ruleForm.name,
-            addDate: this.ruleForm.date,
-            addAvatar: this.ruleForm.avatar,
-            addDesc: this.ruleForm.desc,
-            addPrice: this.ruleForm.price,
-            addNumber: this.ruleForm.number
-          }).then((res) => {
+          addCollections(this.ruleForm).then((res) => {
             this.$message({
               message: '添加成功',
               type: 'success'