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 {
return this.$u.random(random[0], random[1])
},
},
onLoad(e) {
if (!e) {
onLoad() {
let options = wx.getLaunchOptionsSync()
if (!options.query?.id) {
this.$u.route({
url: 'pages/index/index',
type: 'tab',
})
}
this.init(e?.id)
this.init(options.query?.id)
},
methods: {
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