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() {
|
created() {
|
||||||
if (this.size) this.upOption.page.size = this.size;
|
if (this.size) this.upOption.page.size = this.size;
|
||||||
|
// #ifdef MP-HARMONY
|
||||||
// 鸿蒙下 ArkUI 对 slot 内 Vue 响应式更新失效,数据加载后强制重建 slot DOM
|
// 鸿蒙下 ArkUI 对 slot 内 Vue 响应式更新失效,数据加载后强制重建 slot DOM
|
||||||
// 通过把 listSlotKey 自增,使 :key 变化,触发整个 slot 子树销毁重建
|
// 通过把 listSlotKey 自增,使 :key 变化,触发整个 slot 子树销毁重建
|
||||||
const oldUpCallback = this.upCallback;
|
const oldUpCallback = this.upCallback;
|
||||||
@@ -85,6 +86,7 @@ export default {
|
|||||||
}, 200);
|
}, 200);
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
// #endif
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// 统一在 watcher 里触发首屏 resetUpScroll,这里不做任何事情
|
// 统一在 watcher 里触发首屏 resetUpScroll,这里不做任何事情
|
||||||
|
|||||||
@@ -32,9 +32,9 @@
|
|||||||
<ns-empty :text="$lang('emptyText')" :isIndex="false"></ns-empty>
|
<ns-empty :text="$lang('emptyText')" :isIndex="false"></ns-empty>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
|
||||||
</view>
|
</view>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
<privacy-popup ref="privacyPopup"></privacy-popup>
|
<privacy-popup ref="privacyPopup"></privacy-popup>
|
||||||
|
|
||||||
<!-- 底部tabBar -->
|
<!-- 底部tabBar -->
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="cart-empty"><ns-empty text="暂无公告" :isIndex="false"></ns-empty></view>
|
<view v-else class="cart-empty"><ns-empty text="暂无公告" :isIndex="false"></ns-empty></view>
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
|
||||||
</block>
|
</block>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
|
|
||||||
<!-- 隐私弹窗 -->
|
<!-- 隐私弹窗 -->
|
||||||
<privacy-popup ref="privacyPopup"></privacy-popup>
|
<privacy-popup ref="privacyPopup"></privacy-popup>
|
||||||
|
|||||||
Reference in New Issue
Block a user