refactor
This commit is contained in:
parent
5c80d9093b
commit
151586ab60
4 changed files with 79 additions and 72 deletions
|
@ -33,8 +33,8 @@ const emit = defineEmits<{
|
|||
let file: any = $ref(null);
|
||||
|
||||
async function choose() {
|
||||
os.selectDriveFile(false).then((fileResponse: any) => {
|
||||
file = fileResponse;
|
||||
os.selectDriveFile(false).then((fileResponse) => {
|
||||
file = fileResponse[0];
|
||||
emit('update:modelValue', {
|
||||
...props.modelValue,
|
||||
fileId: fileResponse.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue