undefinedfix
Sign in

What is the reason for using graphite document editor to report errors in Vue?

ChOkheli edited in Sat, 03 Sep 2022

Const config = {/ / interface address uploadurl: ', / / file name uploadname:', / / other parameters uploadparams: {}, / / upload success callback uploadcallback: (data) = >{

console.log(data)
return 'blob:https://fiddle.jshell.net/00a0b0b4-d19a-4860-9796-137692aef36f'

}, / / upload failed callback, optional uploadfailed: (ERR) = >{

console.log(err)

}}Where is this code? Is that how you put it? But the report is wrong

3 Replies
blwqh
commented on Sat, 03 Sep 2022

The first error is: after importing, you need to register smeditor in component

data(){
    return(){}
},
component{
    smeditor:SMEditor
}

The second error: you need to check the document of the six component

Global registration where are you main.js You need to register this component in the components

Muza
commented on Sat, 03 Sep 2022

The component keyword component is not registered

FaridLU
commented on Sat, 03 Sep 2022

After the component is introduced, it should be enabled in the component, and then the error of the document is in line 23. You can send another 23 lines of code

lock This question has been locked and the reply function has been disabled.