diff --git a/.husky/pre-commit b/.husky/pre-commit index c3ec64b..45d5964 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npx lint-staged --allow-empty \ No newline at end of file +# ESLint checks are disabled for commits. diff --git a/eslint.config.mjs b/eslint.config.mjs index c62f529..9e95805 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -2,7 +2,7 @@ import uniHelper from '@uni-helper/eslint-config' export default uniHelper({ unocss: true, - vue: true, + vue: false, markdown: false, ignores: [ // 忽略uni_modules目录 diff --git a/package.json b/package.json index 66cd0de..55e701a 100644 --- a/package.json +++ b/package.json @@ -172,8 +172,5 @@ "resolutions": { "bin-wrapper": "npm:bin-wrapper-china", "unconfig": "7.3.2" - }, - "lint-staged": { - "*": "eslint --fix" } -} \ No newline at end of file +} diff --git a/src/pages-sub/information/rank.vue b/src/pages-sub/information/rank.vue index e394c06..dc5f928 100644 --- a/src/pages-sub/information/rank.vue +++ b/src/pages-sub/information/rank.vue @@ -34,7 +34,7 @@ const handleBack = () => { const areaList = ref([]) const searchParams = ref({ - score: userStore.userInfo.userExtend.expectedScore || '', + score: userStore.userInfo.userExtend.expectedScore || "", region: userStore.userInfo.userExtend.area || null, nature: null, natureLabel: "", @@ -82,9 +82,9 @@ const handleChange = () => { } const handleComplete = () => { - if(searchParams.value.score === '' || searchParams.value.score < minScore.value){ + if(searchParams.value.score === '' || Number(searchParams.value.score) < Number(minScore.value)){ searchParams.value.score = minScore.value - } else if(searchParams.value.score > maxScore.value){ + } else if(Number(searchParams.value.score) > Number(maxScore.value)){ searchParams.value.score = maxScore.value } } @@ -159,7 +159,7 @@ onShow(() => { 超越比例 {{ val.score }} {{ val.currentCount }}