Selaa lähdekoodia

修改静态资源管理-编辑图片别名

15313670163 1 kuukausi sitten
vanhempi
sitoutus
336cef1cfc
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      src/views/componentGallery/imgList.vue

+ 5 - 1
src/views/componentGallery/imgList.vue

@@ -486,7 +486,11 @@ export default {
             }
 
             if (this.dialogName == "编辑") {
-                this.$store.dispatch('module/upStaticResource', this.ruleForm).then(res => {
+                let data = {
+                    id: this.ruleForm.id,
+                    img_alias: this.ruleForm.img_alias,
+                }
+                this.$store.dispatch('module/upStaticResource', data).then(res => {
                     if (res.code === 200) {
                         this.$message({
                             message: '编辑成功',