在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML5  HTML/ vue中使用vconsole 當(dāng)切換路由時(shí)報(bào)錯(cuò),求幫忙

vue中使用vconsole 當(dāng)切換路由時(shí)報(bào)錯(cuò),求幫忙

vue main.js 中引入


 import VConsole from 'vconsole'
let option ={
  maxLogNumber:1000
}
var VConsole = new Vconsole(option);

組件正常顯示并且可以正常使用但是每次切換路由都會報(bào)錯(cuò)
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.

回答
編輯回答
莓森

在main.js中使用 就ok
import Vconsole from ‘vconsole‘
let vConsole = new Vconsole()

2017年4月4日 05:56
編輯回答
夢一場

是不是哪里打印了復(fù)雜的對象,試試注釋掉代碼里的console。

2017年10月14日 14:22