浏览代码

fix: 左侧使用异步加载

MTrun 3 年之前
父节点
当前提交
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: {