|
@@ -40,7 +40,12 @@ export default class Index extends Component {
|
40
|
40
|
|
41
|
41
|
toPage(succed) {
|
42
|
42
|
const router = Taro.getStorageSync('router')
|
43
|
|
- const { query, path } = router
|
|
43
|
+ let { query, path } = router
|
|
44
|
+ if (!path) {
|
|
45
|
+ const loadOptions = wx.getLaunchOptionsSync()
|
|
46
|
+ query = loadOptions.query
|
|
47
|
+ path = loadOptions.path
|
|
48
|
+ }
|
44
|
49
|
|
45
|
50
|
Taro.setStorageSync('firstLoading', '8')
|
46
|
51
|
if (!succed && path === 'pages/signin/index') {
|
|
@@ -52,6 +57,7 @@ export default class Index extends Component {
|
52
|
57
|
})
|
53
|
58
|
return
|
54
|
59
|
}
|
|
60
|
+
|
55
|
61
|
Taro.reLaunch({
|
56
|
62
|
url: `/${path}?${query.params}`
|
57
|
63
|
})
|