Skip to content

Commit 40bf887

Browse files
committed
1.1.2
1.修复了修改头像的bug 2.修复了网络传输时对特殊字符的编码解码bug 这一版强烈建议更新
1 parent 50eff2f commit 40bf887

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

SBDoc/routes/user/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function save(req,res) {
6868
{
6969
util.throw(e.userNotFound,"用户不存在");
7070
}
71-
else if(obj.photo && req.clientParam.photo!=obj.photo)
71+
else if(req.clientParam.photo && obj.photo && req.clientParam.photo!=obj.photo)
7272
{
7373
util.delImg(obj.photo);
7474
}

SBDocClient/dist/projectinfo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/projectinfo.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/run.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/run.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/vendor.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/vendor.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/web/common/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ $.param=function (obj) {
315315
var arr=[];
316316
for(var key in obj)
317317
{
318-
arr.push(key+"="+obj[key]);
318+
arr.push(key+"="+encodeURIComponent(obj[key]));
319319
}
320320
return arr.join("&");
321321
}

SBDocClient/web/projectinfo/projectinfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ var vue=new Vue({
252252
var arrQuery1=arrQuery[i].split("=");
253253
arrStoreQuery.push({
254254
name:arrQuery1[0],
255-
value:arrQuery1[1]?[arrQuery1[1]]:[],
255+
value:arrQuery1[1]?[decodeURIComponent(arrQuery1[1])]:[],
256256
must:1,
257257
remark:""
258258
})

SBDocClient/web/projectinfo/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports=new Vuex.Store({
247247
name:param2[0],
248248
must:1,
249249
remark:"",
250-
value:param2[1]?[param2[1]]:[],
250+
value:param2[1]?[decodeURIComponent(param2[1])]:[],
251251
})
252252
}
253253
}
@@ -303,7 +303,7 @@ module.exports=new Vuex.Store({
303303
type:param2[1]=="[FILE]"?1:0,
304304
must:1,
305305
remark:"",
306-
value:(param2[1]!="[FILE]")?(param2[1]?[param2[1]]:[]):[],
306+
value:(param2[1]!="[FILE]")?(param2[1]?[decodeURIComponent(param2[1])]:[]):[],
307307
})
308308
}
309309
}

0 commit comments

Comments
 (0)