加强兼容性

pull/225/head
lyswhut 2020-04-06 01:33:14 +08:00
parent 9c3ab28da9
commit 60243215a0
1 changed files with 4 additions and 5 deletions

View File

@ -237,11 +237,10 @@ export default {
if (this._requestObj_listDetail) this._requestObj_listDetail.cancelHttp()
if (tryNum > 2) return Promise.reject(new Error('try max num'))
// if ((/[?&]/.test(id))) {
// id = id.replace(this.regExps.listDetailLink, '$1')
// } else
if (/http(?:s):/.test(id)) {
return this.getUserListDetail(id, page)
if ((/\/(?:\d+)\.html/.test(id))) {
id = id.replace(this.regExps.listDetailLink, '$1')
} else if (/http(?:s):/.test(id)) {
return this.getUserListDetail(id.replace(/^.*http/, 'http'), page)
}
// if ((/[?&:/]/.test(id))) id = id.replace(this.regExps.listDetailLink, '$1')