parent
9bc4af76b8
commit
743ebc17b9
|
@ -57,6 +57,7 @@ import XPreview from './preview.vue';
|
||||||
const storeItems = require('../../../scripts/room/furnitures.json5');
|
const storeItems = require('../../../scripts/room/furnitures.json5');
|
||||||
import { faBoxOpen, faUndo, faArrowsAlt, faBan } from '@fortawesome/free-solid-svg-icons';
|
import { faBoxOpen, faUndo, faArrowsAlt, faBan } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { faSave, faTrashAlt } from '@fortawesome/free-regular-svg-icons';
|
import { faSave, faTrashAlt } from '@fortawesome/free-regular-svg-icons';
|
||||||
|
import { query as urlQuery } from '../../../../../../prelude/url';
|
||||||
|
|
||||||
let room: Room;
|
let room: Room;
|
||||||
|
|
||||||
|
@ -155,7 +156,7 @@ export default Vue.extend({
|
||||||
this.$chooseDriveFile({
|
this.$chooseDriveFile({
|
||||||
multiple: false
|
multiple: false
|
||||||
}).then(file => {
|
}).then(file => {
|
||||||
room.updateProp(key, file.thumbnailUrl);
|
room.updateProp(key, `/proxy/?${urlQuery({ url: file.thumbnailUrl })}`);
|
||||||
this.$refs.preview.selected(room.getSelectedObject());
|
this.$refs.preview.selected(room.getSelectedObject());
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue