Skip to content

Commit 2570306

Browse files
authored
Merge pull request HalseySpicy#164 from abulo/master
fix: 🧩 修复弱类型检查错误
2 parents 5f5f457 + b32310e commit 2570306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Grid/components/GridItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ watch(
3939
() => [shouldHiddenIndex.value, breakPoint.value],
4040
n => {
4141
if (!!attrs.index) {
42-
isShow.value = !(n[0] !== -1 && parseInt(attrs.index) >= n[0]);
42+
isShow.value = !(n[0] !== -1 && parseInt(attrs.index) >= Number(n[0]));
4343
}
4444
},
4545
{ immediate: true }

0 commit comments

Comments
 (0)