mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-09 03:27:32 +08:00
Merge pull request #446 from nagisa77/codex/fix-ismobile-check-for-initial-data
This commit is contained in:
@@ -120,7 +120,7 @@ import TagSelect from '~/components/TagSelect.vue'
|
||||
import ArticleTags from '~/components/ArticleTags.vue'
|
||||
import ArticleCategory from '~/components/ArticleCategory.vue'
|
||||
import SearchDropdown from '~/components/SearchDropdown.vue'
|
||||
import { isMobile } from '~/utils/screen'
|
||||
import { useIsMobile } from '~/utils/screen'
|
||||
|
||||
definePageMeta({
|
||||
scrollToTop: false,
|
||||
@@ -170,6 +170,7 @@ export default {
|
||||
const pageSize = 10
|
||||
const allLoaded = useState('index-allLoaded', () => false)
|
||||
const initialized = useState('index-initialized', () => false)
|
||||
const isMobile = useIsMobile()
|
||||
|
||||
const loadOptions = async () => {
|
||||
if (selectedCategory.value && !isNaN(selectedCategory.value)) {
|
||||
|
||||
Reference in New Issue
Block a user