Explorar el Código

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

15313670163 hace 1 mes
padre
commit
336cef1cfc
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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: '编辑成功',