refactor: 调整loading-cover和隐私弹窗的挂载位置
1. 将公告列表页的loading-cover移到mescroll-uni外部统一挂载 2. 将文件列表页的loading-cover移到mescroll-uni外部统一挂载 3. 为鸿蒙平台的slot强制重绘逻辑添加条件编译包裹
This commit is contained in:
@@ -74,6 +74,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
if (this.size) this.upOption.page.size = this.size;
|
||||
// #ifdef MP-HARMONY
|
||||
// 鸿蒙下 ArkUI 对 slot 内 Vue 响应式更新失效,数据加载后强制重建 slot DOM
|
||||
// 通过把 listSlotKey 自增,使 :key 变化,触发整个 slot 子树销毁重建
|
||||
const oldUpCallback = this.upCallback;
|
||||
@@ -85,6 +86,7 @@ export default {
|
||||
}, 200);
|
||||
return ret;
|
||||
};
|
||||
// #endif
|
||||
},
|
||||
mounted() {
|
||||
// 统一在 watcher 里触发首屏 resetUpScroll,这里不做任何事情
|
||||
|
||||
Reference in New Issue
Block a user