Skip to content

Commit f778186

Browse files
committed
修复bug
1.修复了头像不显示倒是网页显示一直在加载的bug 2.修复了运行接口下除status为200的情况外不显示返回数据的bug
1 parent a616450 commit f778186

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

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/web/director/proxyImg.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
var config=require("../util/config");
55
var obj={
66
bind:function (el,binding) {
7-
var img=new Image();
8-
img.src=config.host+binding.value
9-
el.src="/html/web/pic/logo.png";
10-
img.onload=function () {
11-
el.src=img.src
7+
el.src="/pic/logo.png";
8+
if(binding.value)
9+
{
10+
var img=new Image();
11+
img.src=config.hostname+binding.value
12+
img.onload=function () {
13+
el.src=img.src
14+
}
1215
}
1316
},
1417
unbind:function (el) {
1518

1619
},
1720
update:function (el,binding) {
18-
if(binding.oldValue!=binding.value)
21+
if(binding.oldValue!=binding.value && binding.value)
1922
{
2023
var img=new Image();
2124
img.src=config.host+binding.value

SBDocClient/web/util/net.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,7 @@ net.upload=function (method,path,data,headers,beforeFunc,run,bNet) {
381381
status:xhr.status,
382382
header:convertHeader(xhr.getAllResponseHeaders()),
383383
}
384-
if(xhr.status>=200 && xhr.status<300)
385-
{
386-
resolve(obj)
387-
}
388-
else
389-
{
390-
reject(obj);
391-
}
384+
resolve(obj)
392385
return;
393386
}
394387
}

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"imgPath":"/Users/Shared/SBDoc/img",
55
"tempPath":"/Users/Shared/SBDoc/temp",
66
"port":10000,
7-
"version":"1.0.0"
7+
"version":"1.0.1"
88
}

0 commit comments

Comments
 (0)