MTrun 3 лет назад
Родитель
Сommit
211e7b08c4
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/views/chart/ContentCharts/components/OptionContent/index.vue

+ 5 - 1
src/views/chart/ContentCharts/components/OptionContent/index.vue

@@ -20,9 +20,13 @@
 
 <script setup lang="ts">
 import { ref, watch, reactive, computed } from 'vue'
-import { ItemBox } from '../ItemBox/index'
 import { ConfigType } from '@/packages/index.d'
 import { useSettingStore } from '@/store/modules/settingStore/settingStore'
+import { loadAsyncComponent } from '@/utils'
+
+const ItemBox = loadAsyncComponent(() =>
+  import('../ItemBox/index.vue')
+)
 
 const props = defineProps({
   selectOptions: {