refactor: 不要な定義を削除
This commit is contained in:
parent
1c1259493d
commit
625e1054db
|
|
@ -49,8 +49,7 @@ let avatarDecorations: any[] = $ref([]);
|
|||
|
||||
async function selectImage(decoration, ev) {
|
||||
const file = await selectFile(ev.currentTarget ?? ev.target, null);
|
||||
const candidate = file.name.replace(/\.(.+)$/, '');
|
||||
decoration.name = candidate;
|
||||
decoration.name = file.name.replace(/\.(.+)$/, '');
|
||||
decoration.url = file.url;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue