|
@@ -15,6 +15,23 @@ Page({
|
|
|
})
|
|
|
this.refreshData() //更新权限等信息
|
|
|
this.getTabBar().unReadMessageCount(); //更新信息数量
|
|
|
+ let history = getApp().globalData.LaunchOptions;
|
|
|
+ if (history && !getCurrentPages().some(v => v.__route__ == history.path)) {
|
|
|
+ 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() {
|