flat:修改
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, inject, nextTick, computed,watch } from 'vue';
|
||||
import { ref, inject, nextTick, computed, watch } from 'vue';
|
||||
const { $api, navTo, insertSortData } = inject('globalFunction');
|
||||
import { onLoad, onShow, onHide } from '@dcloudio/uni-app';
|
||||
import Tabbar from '@/components/tabbar/midell-box.vue';
|
||||
@@ -88,19 +88,18 @@ import config from '@/config';
|
||||
const searchText = ref('');
|
||||
const paging = ref(null);
|
||||
|
||||
import useScreenStore from '@/stores/useScreenStore';
|
||||
const screenStore = useScreenStore();
|
||||
|
||||
import useScreenStore from '@/stores/useScreenStore'
|
||||
const screenStore = useScreenStore()
|
||||
|
||||
const showTabbar = ref(false)
|
||||
const showTabbar = ref(false);
|
||||
|
||||
watch(
|
||||
() => screenStore.isWideScreen,
|
||||
(newVal) => {
|
||||
showTabbar.value = newVal
|
||||
showTabbar.value = newVal;
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
);
|
||||
|
||||
// 实时过滤
|
||||
const filteredList = computed(() => {
|
||||
@@ -125,7 +124,7 @@ onHide(() => {
|
||||
paging.value?.handleTouchCancel();
|
||||
if (isDrawerOpen.value) {
|
||||
isDrawerOpen.value = false;
|
||||
if(!screenStore.isWideScreen)uni.showTabBar();
|
||||
if (!screenStore.isWideScreen) uni.showTabBar();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -134,7 +133,7 @@ const toggleDrawer = () => {
|
||||
if (isDrawerOpen.value) {
|
||||
uni.hideTabBar();
|
||||
} else {
|
||||
if(!screenStore.isWideScreen)uni.showTabBar();
|
||||
if (!screenStore.isWideScreen) uni.showTabBar();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user