Skip to content

Commit

Permalink
修复请求id的一个问题
Browse files Browse the repository at this point in the history
  • Loading branch information
eshengsky committed Aug 28, 2017
1 parent b503d85 commit a9eaa6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dist/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@
key: '_getReqId',
value: function _getReqId() {
this.reqId = document.querySelector('[name="_reqId"]') ? document.querySelector('[name="_reqId"]').content : '';
this.reqId = window._reqId;
if (!this.reqId) {
this.reqId = window._reqId;
}
if (this.reqId) {
// 存在 reqId,说明这是一个服务器端生成的页面,设置一个标示
this.idFromServer = true;
Expand Down
2 changes: 1 addition & 1 deletion dist/build.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a9eaa6e

Please sign in to comment.