introduce
into vue main.js
import VConsole from "vconsole"
let option ={
maxLogNumber:1000
}
var VConsole = new Vconsole(option);
The component displays normally and can be used normally, but each time you switch routes, you will get an error
main.js [Vue warn]: Property or method "toJSON" is not defined on the instance but referenced during render.. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.