Commit b660a3eb authored by tao.huang's avatar tao.huang

feat: 保存延迟请求

parent 1063dfac
......@@ -511,6 +511,14 @@ const onPickerChange = (e, name) => {
const onRadioChange = (e, name) => {
formData.value[name] = e.detail.value;
};
const sleep =(delay) => {
return new Promise((resolve) => {
setTimeout(()=> resolve(), delay)
})
}
const onSubmit = async (e) => {
md.sensorLogTake({
xcxClick: "我的页面-信息修改页点击",
......@@ -592,6 +600,7 @@ const onSubmit = async (e) => {
// url: "/pages/index/index"
// })
showLoading();
await sleep(1500);
await userStore.loadUserInfo();
await userStore.loadBabyInfo();
await userStore.loadHomeInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment