Skip to content

Commit

Permalink
fix: resolve the issue of unable to delete pictures. (#9)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

修复移除已添加图片时,由于变量名错误导致图片无法移除的问题。

#### Which issue(s) this PR fixes:

Fixes #7 

#### Special notes for your reviewer:

测试方式:

1. 安装可测试插件 [plugin-moments-1.0.0-SNAPSHOT.jar.zip](https://github.com/halo-sigs/plugin-moments/files/11147044/plugin-moments-1.0.0-SNAPSHOT.jar.zip)
2. 前往瞬间页面添加图片
3. 点击删除按钮,查看是否能够正常移除已添加图片

#### Does this PR introduce a user-facing change?

```release-note
修复无法移除已添加图片的问题。
```
  • Loading branch information
LIlGG authored Apr 5, 2023
1 parent bd42b0c commit 7a34691
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion console/src/components/MomentEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const removeMedium = (media: MomentMedia) => {
if (!formMedium) {
return;
}
let index: number = formMedium.indexOf(medium);
let index: number = formMedium.indexOf(media);
if (index > -1) {
formMedium.splice(index, 1);
}
Expand Down
Loading

0 comments on commit 7a34691

Please sign in to comment.