perf: optimization final phase - defineAsyncComponent for modals
This commit is contained in:
@ -96,12 +96,12 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { ref, onMounted, defineAsyncComponent } from 'vue'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useThemeStore } from '@/stores/theme'
|
||||
import ReportModal from './ReportModal.vue'
|
||||
const ReportModal = defineAsyncComponent(() => import('./ReportModal.vue'))
|
||||
|
||||
const { t, locale } = useI18n()
|
||||
const authStore = useAuthStore()
|
||||
|
||||
Reference in New Issue
Block a user