{commit_message}
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled

This commit is contained in:
hahwu 2025-12-15 11:18:00 +08:00
parent 86285a1fee
commit 29aeb8fa29

View File

@ -45,7 +45,7 @@ const [Form] = useVbenForm({
fieldName: 'src_uid',
label: '源用户ID',
rules: 'required',
defaultValue: 100100013,
defaultValue: 100100054,
componentProps: {
placeholder: '请输入源用户ID',
},
@ -73,7 +73,7 @@ const [Form] = useVbenForm({
component: 'Input',
fieldName: 'dst_uid',
label: '目标用户ID',
defaultValue: 100100014,
defaultValue: 100100042,
rules: 'required',
componentProps: {
placeholder: '请输入目标用户ID',
@ -92,10 +92,10 @@ async function onSubmit(values: Record<string, any>) {
dst_uid: Number(values.dst_uid),
};
await copyUser(Param).then((respone) => {
if (respone.code === 0) {
message.success('用户复制成功');
if (respone === "复制用户数据成功") {
message.success('复制用户数据成功');
} else {
message.error(`用户复制失败: ${respone.message}`);
message.error(`${respone}`);
}
});
}