diff --git a/src/api/index.js b/src/api/index.js index a27c8c3..7f9379a 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,7 +1,7 @@ import Setting from "@/setting"; -let host = Setting.apiBaseURL -let uploadURL = Setting.upload.apiURL; -let host1 = "http://39.108.250.202:8080/"; // 川大 +const host = Setting.apiBaseURL +const uploadURL = Setting.upload.apiURL; +const host1 = "http://39.108.250.202:8080/" export default { queryToken: `liuwanr/userInfo/queryToken`, @@ -178,12 +178,13 @@ export default { queryCourseProfessional: `nakadai/nakadai/subject/courseProfessional`, //查询专业 // 个人中心 - uploadUserAvatars: `users/users/userAccount/updateUserAvatars`, //更改头像 + uploadUserAvatars: `${host}users/users/userAccount/updateUserAvatars`, //更改头像 queryUserInfoDetails: `users/users/userAccount/queryUserInfoDetails`,//个人中心信息展示 updatePersonCenter: `users/users/userAccount/updatePersonCenter`,//个人中心信息修改 examinePassword: `users/users/userAccount/examinePassword`,//更换密码 bindPhoneOrEmail: `users/users/userAccount/bindPhoneOrEmail`,// 绑定手机或邮箱 sendPhoneOrEmailCode: `users/users/userAccount/sendPhoneOrEmailCode`,// 更换手机号或邮箱--发送手机验证码 + unbindMobilePhone: `users/users/userAccount/unbindMobilePhone`, // 系统设置 // 员工组织架构 diff --git a/src/pages/setting/list/info.vue b/src/pages/setting/list/info.vue index f6779cd..446db5c 100644 --- a/src/pages/setting/list/info.vue +++ b/src/pages/setting/list/info.vue @@ -1,6 +1,6 @@