提交 e668fcc7 authored 作者: caodi\cd's avatar caodi\cd

fix:优化

上级 308a35c6
...@@ -163,12 +163,13 @@ export default { ...@@ -163,12 +163,13 @@ export default {
// 如果有,则返回 B 数组中的对象,否则返回原对象 // 如果有,则返回 B 数组中的对象,否则返回原对象
return updatedItem ? updatedItem : item; return updatedItem ? updatedItem : item;
}); });
writeDeviceData(tmepList, userName) // writeDeviceData(tmepList, userName)
.then((res) => { // .then((res) => {
console.log("tmepList", tmepList); // console.log("tmepList", tmepList);
this.$store.commit("SET_DEVICEDATA", this.list); this.$store.commit("SET_DEVICEDATA", this.list);
console.log("arr", arr); console.log("arr", arr);
setTimeout(() => { setTimeout(
() => {
uni.showToast({ uni.showToast({
title: "打包成功", title: "打包成功",
icon: "none", icon: "none",
...@@ -192,30 +193,32 @@ export default { ...@@ -192,30 +193,32 @@ export default {
// 更新同步时间 // 更新同步时间
this.updateSysTime(); this.updateSysTime();
// this.getDetails(); // this.getDetails();
}, 2 * 1000, },
2 * 1000,
uni.navigateTo({ uni.navigateTo({
url: "/pages/listingManagement/index?backValue=home", url: "/pages/listingManagement/index?backValue=home",
}));
}) })
.catch((error) => { );
this.loading = false; // })
// .catch((error) => {
// this.loading = false;
uni.showToast({ // uni.showToast({
title: error, // title: error,
icon: "none", // icon: "none",
duration: 2000, // duration: 2000,
}); // });
}) // })
.catch(() => { // .catch(() => {
setTimeout(() => { // setTimeout(() => {
uni.showToast({ // uni.showToast({
title: "打包失败", // title: "打包失败",
icon: "none", // icon: "none",
duration: 2000, // duration: 2000,
}); // });
this.loading = false; // this.loading = false;
}, 2 * 1000); // }, 2 * 1000);
}); // });
}, },
// 打包文件 // 打包文件
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论