diff --git a/src/modules/interface/themes/Visual.vue b/src/modules/interface/themes/Visual.vue index 8c4521000..6d63c3949 100644 --- a/src/modules/interface/themes/Visual.vue +++ b/src/modules/interface/themes/Visual.vue @@ -6,13 +6,12 @@ import { IconSettings, IconTablet, VButton, - VCard, - VModal, VSpace, VTabbar, VTabItem, VTabs, } from "@halo-dev/components"; +import AttachmentSelectorModal from "@/modules/contents/attachments/components/AttachmentSelectorModal.vue"; import { computed, onMounted, ref, shallowRef } from "vue"; const activeId = ref("general"); @@ -46,19 +45,6 @@ const iframeClasses = computed(() => { return "w-96 h-[50rem]"; }); -const attachments = Array.from(new Array(50), (_, index) => index).map( - (index) => { - return { - id: index, - name: `attachment-${index}`, - url: `https://picsum.photos/1000/700?random=${index}`, - size: "1.2MB", - type: "image/png", - strategy: "本地存储", - }; - } -); - onMounted(() => { window.addEventListener( "message", @@ -72,44 +58,9 @@ onMounted(() => { });