diff --git a/src/components/drawer/components/image-detail-section.tsx b/src/components/drawer/components/image-detail-section.tsx index 293e72437..8b5dca913 100644 --- a/src/components/drawer/components/image-detail-section.tsx +++ b/src/components/drawer/components/image-detail-section.tsx @@ -3,6 +3,7 @@ import { uniqBy } from 'es-toolkit/compat' import { NButton, NButtonGroup, + NCheckbox, NCollapse, NCollapseItem, NColorPicker, @@ -44,7 +45,7 @@ export const ImageDetailSection = defineComponent({ setup(props) { const loading = ref(false) - const useWebglFlag = ref(false) + const useWebglFlag = useStorage('useWebglFlag', false) const originImageMap = computed(() => { const map = new Map() @@ -185,15 +186,15 @@ export const ImageDetailSection = defineComponent({ 自动修正 -
- void (useWebglFlag.value = e)} +
+ void (useWebglFlag.value = e)} /> -
- {' '} +
+
{images.value.map((image: ImageModel, index: number) => {