Commit 8db91880 by 李伟康

提交

1 parent 9ef9235f
...@@ -24,22 +24,24 @@ class NetWork { ...@@ -24,22 +24,24 @@ class NetWork {
const thisPage = wx.$router.getPageInstance(), const thisPage = wx.$router.getPageInstance(),
options = Object.keys(thisPage.options) options = Object.keys(thisPage.options)
this[ISCOMMECTED] = false this[ISCOMMECTED] = false
if (thisPage.noPageAuth) {
wx.showLoading() wx.showLoading()
this.refreshPage() wx.hideLoading()
} else { // if (thisPage.noPageAuth) {
let url = `/${thisPage.route}` // wx.showLoading()
if (options.length) { // this.refreshPage()
let query = [] // } else {
options.map(key => { // let url = `/${thisPage.route}`
query.push(`${key}=${thisPage.options[key]}`) // if (options.length) {
}) // let query = []
url += `?${query.join('&')}` // options.map(key => {
} // query.push(`${key}=${thisPage.options[key]}`)
wx.$router.redirectTo('login.loading', { // })
url // url += `?${query.join('&')}`
}) // }
} // wx.$router.redirectTo('login.loading', {
// url
// })
// }
} }
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!