加强兼容性
parent
9c3ab28da9
commit
60243215a0
|
@ -237,11 +237,10 @@ export default {
|
||||||
if (this._requestObj_listDetail) this._requestObj_listDetail.cancelHttp()
|
if (this._requestObj_listDetail) this._requestObj_listDetail.cancelHttp()
|
||||||
if (tryNum > 2) return Promise.reject(new Error('try max num'))
|
if (tryNum > 2) return Promise.reject(new Error('try max num'))
|
||||||
|
|
||||||
// if ((/[?&]/.test(id))) {
|
if ((/\/(?:\d+)\.html/.test(id))) {
|
||||||
// id = id.replace(this.regExps.listDetailLink, '$1')
|
id = id.replace(this.regExps.listDetailLink, '$1')
|
||||||
// } else
|
} else if (/http(?:s):/.test(id)) {
|
||||||
if (/http(?:s):/.test(id)) {
|
return this.getUserListDetail(id.replace(/^.*http/, 'http'), page)
|
||||||
return this.getUserListDetail(id, page)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ((/[?&:/]/.test(id))) id = id.replace(this.regExps.listDetailLink, '$1')
|
// if ((/[?&:/]/.test(id))) id = id.replace(this.regExps.listDetailLink, '$1')
|
||||||
|
|
Loading…
Reference in New Issue