Skip to content

Commit

Permalink
to perfect
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangke committed Jan 4, 2018
1 parent b66ee12 commit 94e3ef8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var UserBasicInfoPage = React.createClass({
},
getUserBasicInfo: function (callfun) {
// c(this.props);
const url = "/user/online";
const url = "/user/"+this.state.userId;
ajax.get({
url: url,
onBeforeRequest: function () {
Expand Down
2 changes: 1 addition & 1 deletion vm-frontend/src/main/resources/static/dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -31771,7 +31771,7 @@ var UserBasicInfoPage = _react2.default.createClass({
},
getUserBasicInfo: function getUserBasicInfo(callfun) {
// c(this.props);
var url = "/user/online";
var url = "/user/" + this.state.userId;
ajax.get({
url: url,
onBeforeRequest: function () {}.bind(this),
Expand Down
2 changes: 1 addition & 1 deletion vm-frontend/src/main/resources/static/js/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function success(code) {
return code == RESPONSE_CODE_SUCCESS;
}
//用户未登录时受保护的页面,用于用户注销后或者被动离线后调用
var protectedPageLists = ["/user/[0-9/a-zA-Z]*"];
var protectedPageLists = ["/user/[0-9/a-zA-Z]*"];//被保护的页面
function protectPage(react_this) {
for (var i = 0; i < protectedPageLists.length; i++) {
var protectedPage = protectedPageLists[i];
Expand Down

0 comments on commit 94e3ef8

Please sign in to comment.