fix: 操作ldrs

This commit is contained in:
Tim
2025-08-07 20:07:37 +08:00
parent cfdd257b9a
commit 73b9dcf0cd
9 changed files with 158 additions and 36 deletions

View File

@@ -147,11 +147,8 @@
<script>
import { ref, computed, watch, onMounted } from "vue"
import { hatch } from "ldrs"
import { isMobile } from "~/utils/screen"
if (process.client) {
hatch.register()
}
export default {
name: "BaseDropdown",
@@ -255,7 +252,7 @@ export default {
}
})
onMounted(() => {
onMounted(async () => {
if (!props.remote) {
loadOptions()
}

View File

@@ -117,10 +117,6 @@ import { authState } from '~/utils/auth'
import { fetchUnreadCount, notificationState } from '~/utils/notification'
import { watch } from 'vue'
import { API_BASE_URL } from '~/main'
import { hatch } from 'ldrs'
if (process.client) {
hatch.register()
}
export default {
name: 'MenuComponent',