Просмотр исходного кода

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

15313670163 4 недель назад
Родитель
Сommit
336cef1cfc
1 измененных файлов с 5 добавлено и 1 удалено
  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: '编辑成功',