fix: 修复白名单密码问题
This commit is contained in:
parent
d36e33e4df
commit
29b37b7ed0
@ -28,6 +28,7 @@ export default {
|
||||
type: 'CustomedSwitch'
|
||||
},
|
||||
interview_pwd: {
|
||||
key: 'baseConf.password',
|
||||
type: 'InputSetter',
|
||||
placeholder: '请输入6位字符串类型访问密码 ',
|
||||
maxLength: 6,
|
||||
@ -70,7 +71,7 @@ export default {
|
||||
type: 'WhiteList',
|
||||
custom: true, // 自定义导入高级组件
|
||||
relyFunc: (data) => {
|
||||
return data.whitelistType == 'CUSTOM'
|
||||
return data.whitelistType === 'CUSTOM'
|
||||
}
|
||||
},
|
||||
team_list: {
|
||||
@ -79,7 +80,7 @@ export default {
|
||||
type: 'TeamMemberList',
|
||||
custom: true, // 自定义导入高级组件
|
||||
relyFunc: (data) => {
|
||||
return data.whitelistType == 'MEMBER'
|
||||
return data.whitelistType === 'MEMBER'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<el-switch v-model="newValue" @change="changeData" />
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { ref, watch } from 'vue'
|
||||
import { FORM_CHANGE_EVENT_KEY } from '@/materials/setters/constant'
|
||||
|
||||
const props = defineProps({
|
||||
@ -23,4 +23,16 @@ const changeData = (value) => {
|
||||
value
|
||||
})
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.formConfig.value,
|
||||
(newVal) => {
|
||||
if (newVal !== newValue.value) {
|
||||
newValue.value = newVal
|
||||
}
|
||||
},
|
||||
{
|
||||
immediate: true
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user