提交 7e4dd885 编写于 作者: fxy060608's avatar fxy060608

fix(h5): ensureURL

上级 42294bdb
......@@ -2282,14 +2282,9 @@ var HTML5History = (function (History$$1) {
HTML5History.prototype.ensureURL = function ensureURL (push ) {
if (getLocation(this.base) !== this.current.fullPath) {
var current = cleanPath(this.base + this.current.fullPath);
// fixed by xxxxxx
var location = {
path: current,
params: {
__id__: this.current.params.__id__
}
};
push ? pushState(location, location.params.__id__) : replaceState(location, location.params.__id__);
// fixed by xxxxxx
var id = this.current.params.__id__;
push ? pushState(current, id) : replaceState(current, id);
}
};
......
......@@ -2280,14 +2280,9 @@ var HTML5History = (function (History$$1) {
HTML5History.prototype.ensureURL = function ensureURL (push ) {
if (getLocation(this.base) !== this.current.fullPath) {
var current = cleanPath(this.base + this.current.fullPath);
// fixed by xxxxxx
var location = {
path: current,
params: {
__id__: this.current.params.__id__
}
};
push ? pushState(location, location.params.__id__) : replaceState(location, location.params.__id__);
// fixed by xxxxxx
var id = this.current.params.__id__;
push ? pushState(current, id) : replaceState(current, id);
}
};
......
......@@ -2286,14 +2286,9 @@ var HTML5History = (function (History$$1) {
HTML5History.prototype.ensureURL = function ensureURL (push ) {
if (getLocation(this.base) !== this.current.fullPath) {
var current = cleanPath(this.base + this.current.fullPath);
// fixed by xxxxxx
var location = {
path: current,
params: {
__id__: this.current.params.__id__
}
};
push ? pushState(location, location.params.__id__) : replaceState(location, location.params.__id__);
// fixed by xxxxxx
var id = this.current.params.__id__;
push ? pushState(current, id) : replaceState(current, id);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册