2020-09-13 23:22:17 +09:00
|
|
|
export function selectDriveFile(multiple) {
|
2020-01-30 04:37:25 +09:00
|
|
|
return new Promise((res, rej) => {
|
2020-09-06 12:30:27 +09:00
|
|
|
import('@/components/drive-window.vue').then(dialog => {
|
2020-04-22 19:36:28 +09:00
|
|
|
const w = $root.new(dialog, {
|
|
|
|
|
type: 'file',
|
|
|
|
|
multiple
|
|
|
|
|
});
|
|
|
|
|
w.$once('selected', files => {
|
|
|
|
|
res(multiple ? files : files[0]);
|
|
|
|
|
});
|
2020-01-30 04:37:25 +09:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|