forked from noxious/client
Fixes
This commit is contained in:
parent
c1d9cc3a11
commit
37b97b0aac
@ -48,7 +48,6 @@ const handleFileUpload = (e: Event) => {
|
||||
const files = (e.target as HTMLInputElement).files
|
||||
if (!files) return
|
||||
gameStore.connection?.emit('gm:mapObject:upload', files, (response: boolean) => {
|
||||
console.log(response)
|
||||
if (!response) {
|
||||
if (config.development) console.error('Failed to upload object')
|
||||
return
|
||||
@ -94,7 +93,6 @@ function toTop() {
|
||||
|
||||
onMounted(() => {
|
||||
gameStore.connection?.emit('gm:mapObject:list', {}, (response: MapObject[]) => {
|
||||
console.log(response)
|
||||
assetManagerStore.setMapObjectList(response)
|
||||
})
|
||||
})
|
||||
|
@ -213,7 +213,7 @@ watch(
|
||||
if (updatedObject) {
|
||||
return {
|
||||
...mapObject,
|
||||
object: {
|
||||
mapObject: {
|
||||
...mapObject.mapObject,
|
||||
originX: updatedObject.originX,
|
||||
originY: updatedObject.originY
|
||||
@ -241,6 +241,6 @@ watch(
|
||||
}
|
||||
}
|
||||
},
|
||||
{ deep: true }
|
||||
// { deep: true }
|
||||
)
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user