fix: Prompt message error

--bug=1052066 --user=王孝刚 [系统设置] LDAP环境测试连接失败 https://www.tapd.cn/57709429/s/1651802
This commit is contained in:
wxg0103 2025-02-08 17:17:14 +08:00 committed by wxg
parent ccd23eabb1
commit 0e817e1e06

View File

@ -27,10 +27,7 @@
:placeholder="$t('views.system.authentication.ldap.bindDNPlaceholder')" :placeholder="$t('views.system.authentication.ldap.bindDNPlaceholder')"
/> />
</el-form-item> </el-form-item>
<el-form-item <el-form-item :label="$t('views.system.password')" prop="config_data.password">
:label="$t('views.system.password')"
prop="config_data.password"
>
<el-input <el-input
v-model="form.config_data.password" v-model="form.config_data.password"
:placeholder="$t('views.user.userForm.form.password.placeholder')" :placeholder="$t('views.user.userForm.form.password.placeholder')"
@ -156,7 +153,7 @@ const submit = async (formEl: FormInstance | undefined, test?: string) => {
if (valid) { if (valid) {
if (test) { if (test) {
authApi.postAuthSetting(form.value, loading).then((res) => { authApi.postAuthSetting(form.value, loading).then((res) => {
MsgSuccess(t('views.system.testFailed')) MsgSuccess(t('views.system.testSuccess'))
}) })
} else { } else {
authApi.putAuthSetting(form.value.auth_type, form.value, loading).then((res) => { authApi.putAuthSetting(form.value.auth_type, form.value, loading).then((res) => {