refactor: img dialog => remove img function
This commit is contained in:
parent
42bb43f618
commit
7ab9f69ef8
6 changed files with 82 additions and 78 deletions
|
|
@ -1972,10 +1972,9 @@ watch(
|
|||
async (v) => {
|
||||
if (!v) return;
|
||||
if (!currentUser) return;
|
||||
|
||||
const name = v.split('/').pop() || '';
|
||||
await userStore.deleteImageByName(currentUser?.id, name);
|
||||
await fetchImageList(currentUser?.id, name);
|
||||
await fetchImageList(currentUser?.id, currentUser.selectedImage || '');
|
||||
}
|
||||
"
|
||||
@submit="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue