fix: 修复白名单密码问题

This commit is contained in:
sudoooooo 2024-07-23 22:50:50 +08:00
parent d36e33e4df
commit 29b37b7ed0
2 changed files with 16 additions and 3 deletions

View File

@ -28,6 +28,7 @@ export default {
type: 'CustomedSwitch' type: 'CustomedSwitch'
}, },
interview_pwd: { interview_pwd: {
key: 'baseConf.password',
type: 'InputSetter', type: 'InputSetter',
placeholder: '请输入6位字符串类型访问密码 ', placeholder: '请输入6位字符串类型访问密码 ',
maxLength: 6, maxLength: 6,
@ -70,7 +71,7 @@ export default {
type: 'WhiteList', type: 'WhiteList',
custom: true, // 自定义导入高级组件 custom: true, // 自定义导入高级组件
relyFunc: (data) => { relyFunc: (data) => {
return data.whitelistType == 'CUSTOM' return data.whitelistType === 'CUSTOM'
} }
}, },
team_list: { team_list: {
@ -79,7 +80,7 @@ export default {
type: 'TeamMemberList', type: 'TeamMemberList',
custom: true, // 自定义导入高级组件 custom: true, // 自定义导入高级组件
relyFunc: (data) => { relyFunc: (data) => {
return data.whitelistType == 'MEMBER' return data.whitelistType === 'MEMBER'
} }
} }
} }

View File

@ -2,7 +2,7 @@
<el-switch v-model="newValue" @change="changeData" /> <el-switch v-model="newValue" @change="changeData" />
</template> </template>
<script setup> <script setup>
import { ref } from 'vue' import { ref, watch } from 'vue'
import { FORM_CHANGE_EVENT_KEY } from '@/materials/setters/constant' import { FORM_CHANGE_EVENT_KEY } from '@/materials/setters/constant'
const props = defineProps({ const props = defineProps({
@ -23,4 +23,16 @@ const changeData = (value) => {
value value
}) })
} }
watch(
() => props.formConfig.value,
(newVal) => {
if (newVal !== newValue.value) {
newValue.value = newVal
}
},
{
immediate: true
}
)
</script> </script>