修复新建美甲师后日程筛选列表未即时刷新
自动发布开发环境 Nacos 配置 / publish (push) Successful in 24s

This commit is contained in:
2026-11-07 01:03:19 +08:00
parent ae6317903a
commit 71ddf0210c
2 changed files with 12 additions and 1 deletions
@@ -4,14 +4,20 @@ const employeesApi = require('../../api/employees')
let navigatedBack = false
let navigatedTo = ''
let modalConfirm = false
const storage = {}
const app = { globalData: {} }
global.wx = {
getAccountInfoSync: () => ({ miniProgram: { envVersion: 'develop' } }),
getDeviceInfo: () => ({ platform: 'devtools' }),
showToast: () => {},
showModal: options => options.success({ confirm: modalConfirm }),
navigateBack: () => { navigatedBack = true },
navigateTo: options => { navigatedTo = options.url }
navigateTo: options => { navigatedTo = options.url },
setStorageSync: (key, value) => { storage[key] = value },
getStorageSync: key => storage[key]
}
global.getApp = () => app
global.getCurrentPages = () => []
global.setTimeout = callback => { callback(); return 1 }
let definition
@@ -65,6 +71,8 @@ async function run() {
})
assert.strictEqual(page.data.onboardingVisible, true)
assert.strictEqual(emitted, undefined)
assert.strictEqual(app.globalData.planningNeedRefresh, true)
assert.strictEqual(storage.planningNeedRefresh, '1')
let schedulePayload
page.data.pickerMode = true