fix:上传存图片路径; #132

Merged
yangws merged 1 commits from yangws into main 2024-08-14 16:32:24 +08:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 3c2dbb722a - Show all commits

View File

@ -126,6 +126,7 @@ setTimeout(() => {
function submit() { function submit() {
proxy.$refs.userRef.validate((valid) => { proxy.$refs.userRef.validate((valid) => {
if (valid) { if (valid) {
props.user.avatar = userStore.user.avatar
updateUserInfo(props.user).then((response) => { updateUserInfo(props.user).then((response) => {
if(response.code == 200){ if(response.code == 200){
userStore.login({username:props.user.phonenumber,password:props.user.plainpwd}).then(() => { userStore.login({username:props.user.phonenumber,password:props.user.plainpwd}).then(() => {