flat: 演示版
This commit is contained in:
@@ -42,7 +42,7 @@ const { $api, navTo, debounce, customSystem } = inject('globalFunction');
|
||||
import { storeToRefs } from 'pinia';
|
||||
import useLocationStore from '@/stores/useLocationStore';
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
const { userInfo } = storeToRefs(useUserStore());
|
||||
const { userInfo, isMiniProgram } = storeToRefs(useUserStore());
|
||||
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
||||
|
||||
const pageState = reactive({
|
||||
@@ -58,6 +58,15 @@ const state = reactive({
|
||||
tabIndex: 'all',
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
// #ifdef H5
|
||||
if (!isMiniProgram.value) {
|
||||
const a = document.getElementsByClassName('uni-page-head-hd')[0];
|
||||
a.style.display = 'none';
|
||||
}
|
||||
// #endif
|
||||
});
|
||||
|
||||
onLoad(() => {
|
||||
getList('refresh');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user