diff --git a/src/components/clipImage.vue b/src/components/clipImage.vue index c40abeed..8d8c8d09 100644 --- a/src/components/clipImage.vue +++ b/src/components/clipImage.vue @@ -23,7 +23,6 @@ import useSelect from '@/hooks/select'; import { useI18n } from 'vue-i18n'; const update = getCurrentInstance(); -// const canvasEditor = inject('canvasEditor'); const { canvasEditor, isOne } = useSelect(); const { t } = useI18n(); const type = ref(''); diff --git a/src/components/myMaterial/uploadMaterial.vue b/src/components/myMaterial/uploadMaterial.vue index aacdca9b..0f8e5c2d 100644 --- a/src/components/myMaterial/uploadMaterial.vue +++ b/src/components/myMaterial/uploadMaterial.vue @@ -44,8 +44,10 @@ const APP_APIHOST = import.meta.env.APP_APIHOST; import { getFileList, uploadImg, createdMaterial, removeMaterial } from '@/api/user'; import { Utils } from '@kuaitu/core'; +import { INJECT_CANVAS_EDITOR_KEY } from '@/utils/helper'; + const { selectFiles } = Utils; -const canvasEditor = inject('canvasEditor'); +const canvasEditor = inject(INJECT_CANVAS_EDITOR_KEY); const fileList = ref([]); const isLogin = ref(false); diff --git a/src/components/previewCurrent.vue b/src/components/previewCurrent.vue index d38b3402..53dc404d 100644 --- a/src/components/previewCurrent.vue +++ b/src/components/previewCurrent.vue @@ -13,9 +13,11 @@