form怎么显示后端返回的错误?比如密码错误 #6207
Unanswered
xiangnanscu
asked this question in
Q&A
Replies: 2 comments
-
你把 以下是示例代码 import { computed } from "vue"
const passwordRule = computed(() => {
required: true,
message: error ? "密码错误" : "请输入密码",
}) <a-form-item label="密码" name="password" :rules="passwordRule">
<a-input v-model:value="formState.password" />
</a-form-item> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
比如登录框, 后端返回"密码错误", 我准备渲染在password的错误, 如何进行?
Beta Was this translation helpful? Give feedback.
All reactions