提示: Uncaught (in promise) Error: Password is missing or empty.
文字缩进4格
// 创建实例
const user = new User();
// 等同于 user.set('username', 'Tom')
user.setUsername(formData.value.username);
user.setPassword(formData.value.password);
// user.setMobilePhoneNumber(formData.value.mobilePhoneNumber);
if (formData.value.email) {
user.setEmail(formData.value.email);
}
user.set("realName", formData.value.realName);
user.save().then(res => {
console.log("更新成功")
props.succCb();
props.setVisible(false);
})