Closed hiisea closed 2 years ago
支付宝小程序启动错误: vendors.js:13460 TypeError: Cannot read property 'replace' of undefined at routeToPathname (vendors.js:1049) at Object.getLocation (vendors.js:1049) at createRouter (vendors.js:1049) at createApp (vendors.js:7557) at App (app.js:774)
vendors.js:13460 TypeError: Cannot read property 'replace' of undefined at routeToPathname (vendors.js:1049) at Object.getLocation (vendors.js:1049) at createRouter (vendors.js:1049) at createApp (vendors.js:7557) at App (app.js:774)
原因:支付宝小程序先执行了入口component的render方法,再执行onLaunch,导致Taro.getLaunchOptionsSync()获取失败
支付宝小程序启动错误:
vendors.js:13460 TypeError: Cannot read property 'replace' of undefined at routeToPathname (vendors.js:1049) at Object.getLocation (vendors.js:1049) at createRouter (vendors.js:1049) at createApp (vendors.js:7557) at App (app.js:774)