修复已知bug

This commit is contained in:
RuoYi
2018-05-16 21:20:06 +08:00
parent f85ab94422
commit cc27d85b1a
7 changed files with 9 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
<title>用户头像修改</title>
<link href="/ajax/libs/cropbox/cropbox.css" th:href="@{/ajax/libs/cropbox/cropbox.css}" rel="stylesheet"/>
<body class="white-bg">
<input name="userId" id="userId" type="hidden" th:value="${user.userId}" />
<div class="container">
<div class="imageBox">
<div class="thumbBox"></div>
@@ -44,7 +45,7 @@ $(window).load(function() {
var img = cropper.getBlob();
var formdata = new FormData();
formdata.append("avatarfile", img);
formdata.append("userId", 1);
formdata.append("userId", $("#userId").val());
$.ajax({
url: ctx + "system/user/profile/updateAvatar",
data: formdata,