0

我在我的 laravel 8 项目中使用 vue-editor-js v2.0.2。但是有问题。我的浏览器控制台显示此错误消息。

«blocks.stretchBlock()» is deprecated and will be removed in the next major release. Please use the «BlockAPI» instead.

这是我的代码...

<script>
import Editor from 'vue-editor-js/src/Editor.vue'
import Header from '@editorjs/header'
import Personality from '@editorjs/personality'
import ImageTool from '@editorjs/image'

export default {
  components: { Editor },
    data() {
        return {
            config: {
                tools: {
                    header: {
                        class: Header,
                    },

                    personality: {
                        class: Personality,
                        config: {
                           endpoint:'http://blogvue.test/uploadFile'
                        }
                    },

                    image: {
                        class: ImageTool,
                        field: 'image',
                    },
                }
            },
            data: {

            },
        }
    }, 
}
</script>
4

0 回答 0