|
|
@@ -28,7 +28,24 @@ Page({
|
|
|
res.data.unshift(data)
|
|
|
}
|
|
|
wx.setStorageSync('templetList', res.data)
|
|
|
- })
|
|
|
+ });
|
|
|
+ let history = getApp().globalData.LaunchOptions;
|
|
|
+ if (history) {
|
|
|
+ let url = `/${history.path}?`;
|
|
|
+ for (const key in history.query) {
|
|
|
+ url += `${key}=${history.query[key]}&`
|
|
|
+ }
|
|
|
+ wx.navigateTo({
|
|
|
+ url,
|
|
|
+ success(res) {
|
|
|
+ wx.showToast({
|
|
|
+ title: '已恢复页面',
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ getApp().globalData.LaunchOptions = null;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
/* 更新站点信息 */
|
|
|
refreshData() {
|