新增下拉刷新。微信适配

master
lld 2026-01-28 00:20:20 +08:00
parent 52ef676656
commit f2f890da09
2 changed files with 4 additions and 3 deletions

View File

@ -18,14 +18,15 @@ export default {
onLaunch: function() { onLaunch: function() {
// //
// #ifdef H5
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// HBuilderX // HBuilderX
document.addEventListener('uni-app:reload', () => { document.addEventListener('uni-app:reload', () => {
console.log('开发环境代码热更新') ; console.log('开发环境代码热更新') ;
mqttUtil.disconnectMqtt(); // MQTT mqttUtil.disconnectMqtt(); // MQTT
}); });
} }
// #ifdef H5
// H5/ // H5/
window.addEventListener('beforeunload', () => { window.addEventListener('beforeunload', () => {
mqttUtil.disconnectMqtt() mqttUtil.disconnectMqtt()

View File

@ -853,8 +853,8 @@ export default {
<style scoped> <style scoped>
::v-deep .z-paging-container { /deep/ .z-paging-content-fixed {
padding: 20rpx; padding: 20rpx !important;
/* 可选防止margin塌陷加overflow */ /* 可选防止margin塌陷加overflow */
overflow: hidden; overflow: hidden;
} }