优化员工排班与规划月视图体验
This commit is contained in:
@@ -60,8 +60,12 @@ Page({
|
||||
},
|
||||
|
||||
onShow() {
|
||||
if (this._needRefresh) {
|
||||
const app = getApp()
|
||||
const storageRefresh = wx.getStorageSync('planningNeedRefresh') === '1'
|
||||
if (this._needRefresh || app.globalData.planningNeedRefresh || storageRefresh) {
|
||||
this._needRefresh = false
|
||||
app.globalData.planningNeedRefresh = false
|
||||
wx.removeStorageSync('planningNeedRefresh')
|
||||
this.loadCalendar()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user