chore: tweak

This commit is contained in:
pengzhanbo 2024-08-22 13:00:25 +08:00
parent f79f7bd03a
commit e2cca7dd3b

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, onMounted, ref, toValue, watch } from 'vue'
import { onMounted, ref, toValue, watch } from 'vue'
import { useMediaQuery } from '@vueuse/core'
const props = defineProps<{
@ -30,7 +30,7 @@ function getRepeat() {
return cols.sm
}
watch([md, lg], () => {
watch(() => [md.value, lg.value, props.cols], () => {
repeat.value = getRepeat()
})