Commit 59220483 authored by Facius's avatar Facius

Merge branch 'dev-v1.0.0' of https://git.banshouhui.com/wuzhenzhe/study into dev-v1.0.0

parents 59444c9c 22d2771b
...@@ -172,14 +172,15 @@ export default { ...@@ -172,14 +172,15 @@ export default {
return this.$u.random(random[0], random[1]) return this.$u.random(random[0], random[1])
}, },
}, },
onLoad(e) { onLoad() {
if (!e) { let options = wx.getLaunchOptionsSync()
if (!options.query?.id) {
this.$u.route({ this.$u.route({
url: 'pages/index/index', url: 'pages/index/index',
type: 'tab', type: 'tab',
}) })
} }
this.init(e?.id) this.init(options.query?.id)
}, },
methods: { methods: {
init(id) { init(id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment