form怎么显示后端返回的错误?比如密码错误 #6207
Unanswered
xiangnanscu
asked this question in
Q&A
Replies: 2 comments
-
有办法吗? |
Beta Was this translation helpful? Give feedback.
0 replies
-
你把 以下是示例代码 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
Uh oh!
There was an error while loading. Please reload this page.
-
比如登录框, 后端返回"密码错误", 我准备渲染在password的错误, 如何进行?
Beta Was this translation helpful? Give feedback.
All reactions