Commit 0b1fdbea by 李伟康

兼容scene

1 parent dcd7f673
......@@ -89,7 +89,7 @@ Page({
options[key] = val
})
if (params.length > 1) options.url = params.at(-1)
if (_options.url) options.url = _options.url
if (!options.url && _options.url) options.url = _options.url
if (code == 0) this.login(options)
else throw {}
} catch (error) {
......@@ -108,7 +108,7 @@ Page({
events.notIntercept = true
events.merchantId = options.merchantId || ''
Object.keys(options).map(key => {
if (key != 'url') events[key] = options[key]
if (key != 'url' && options[key]) events[key] = options[key]
})
wx.p.router[routeName](url, events)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!