diff --git a/eslint.config.mjs b/eslint.config.mjs index 924fd03..851309c 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -19,6 +19,7 @@ export default antfu({ "style/no-tabs": ["off"], "vue/eqeqeq": ["off"], "vue/require-prop-type-constructor": ["off"], + "vue/valid-v-slot": ["off"], "eqeqeq": ["off"], "no-console": ["off"], }, diff --git a/pages/home/home.vue b/pages/home/home.vue index e4a5f8e..cb3af59 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -90,7 +90,7 @@ async function getIosShow() { const params = { black: "XCXenterCDW", key: "config.enterCDW" }; const res = await getSystemSettingApi(params); // 返回 0 不显示,其他反之 - isShowRecruitment.value = res.data.code !== 0; + isShowRecruitment.value = res.code !== "0"; // if (res.data.code === 0) { // isShowRecruitment.value = false; // menus.value = menus.value.filter(item => item.name !== "走进菜大王" || item.name !== "招聘求职"); @@ -410,7 +410,7 @@ onShow(() => { getProductCategory(); getNoticesApiList(); getmyarea(); - statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight; + statusBarHeight.value = uni.getWindowInfo().statusBarHeight; nextTick(() => { // #ifdef MP-WEIXIN