2020-09-20 21:37:09 +09:00
|
|
|
import * as os from '@/os';
|
|
|
|
|
|
2020-09-13 23:22:17 +09:00
|
|
|
export function selectDriveFile(multiple) {
|
2020-09-20 21:37:09 +09:00
|
|
|
return new Promise(async (res, rej) => {
|
|
|
|
|
os.modal(await import('@/components/drive-window.vue'), {
|
|
|
|
|
type: 'file',
|
|
|
|
|
multiple
|
|
|
|
|
}).then(files => {
|
|
|
|
|
res(multiple ? files : files[0]);
|
2020-01-30 04:37:25 +09:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|