refactor(http,lang): 重构请求逻辑并新增多语言错误提示

1.  新增网络相关错误的多语言翻译配置
2.  重写http请求层,添加自动重试机制与错误分类提示
3.  优化鸿蒙平台下的组件渲染兼容性与数据更新逻辑
4.  调整部分页面的模板结构与请求配置
This commit is contained in:
2026-07-13 15:45:15 +08:00
parent cb9234bdac
commit 30cda71749
8 changed files with 234 additions and 157 deletions

View File

@@ -352,14 +352,16 @@ export default {
this.$util.showToast({
title: res.message
});
this.diyData = {};
// 保持原有数据结构,仅清空 value,避免鸿蒙下重新布局
this.diyData = { ...(this.diyData || {}), value: [] };
return;
}
this.$util.showToast({
title: this.$lang('diy.noDiyData')
});
this.diyData = {};
// 保持原有数据结构,仅清空 value,避免鸿蒙下重新布局
this.diyData = { ...(this.diyData || {}), value: [] };
return;
}