mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-25 14:15:42 +00:00
hotfix
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, inject, PropType } from 'vue'
|
||||
import { defineComponent, inject, PropType, nextTick } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import Widget from './Widget.vue'
|
||||
import DndContainer from 'vuedraggable'
|
||||
@@ -64,7 +64,9 @@ export default defineComponent({
|
||||
props.config.images = [{
|
||||
id: 1, url: 'syndicate.jpg'
|
||||
}]
|
||||
wm.show(props.config.wmId)
|
||||
nextTick(() => {
|
||||
wm.show(props.config.wmId)
|
||||
})
|
||||
}
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
@@ -28,12 +28,12 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue'
|
||||
import { defineComponent, toRaw } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { Config } from '@/web/Config'
|
||||
import { MainProcess } from '@/ipc/main-process-bindings'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
setup () {
|
||||
const { t } = useI18n()
|
||||
|
||||
@@ -42,14 +42,14 @@ export default {
|
||||
return {
|
||||
t,
|
||||
save () {
|
||||
MainProcess.closeSettingsWindow(Config.store)
|
||||
MainProcess.closeSettingsWindow(toRaw(Config.store))
|
||||
},
|
||||
cancel () {
|
||||
MainProcess.closeSettingsWindow()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="postcss">
|
||||
|
||||
Reference in New Issue
Block a user