Skip to content

Commit

Permalink
fix: 🐛 Display options cannot be changed
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Nov 2, 2023
1 parent 3279c34 commit 3046746
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Preference/DisplaySelect/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<el-select
v-bind="data.props || {}"
:model-value="modelValue"
v-model="selectValue"
class="!w-full"
:title="$t(data.placeholder)"
:placeholder="$t(data.placeholder)"
Expand Down Expand Up @@ -41,6 +41,7 @@ export default {
data() {
return {
deviceOptions: [],
selectValue: '',
}
},
computed: {
Expand All @@ -49,6 +50,11 @@ export default {
},
},
watch: {
modelValue: {
handler(value) {
this.selectValue = value
},
},
deviceScope: {
handler(value) {
if (value === 'global') {
Expand Down

0 comments on commit 3046746

Please sign in to comment.