微信小程序设置默认页面的方法:
可以直接通过修改app.json,直接把目标页面设置为默认打开页。
{"pages": ["pages/article/detail","pages/index/index","pages/article/index"]}
"pages": [
"pages/article/detail",
"pages/index/index",
"pages/article/index"
]
}
(注:按顺序打开,排在第一是初始页面)