在laravel 5.4中启用Vue Devtools检查 [英] enable Vue Devtools inspection in laravel 5.4

查看:157
本文介绍了在laravel 5.4中启用Vue Devtools检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在laravel 5.4应用程序中开始使用Vue.没有laravel,我可以在chrome上看到vue devtools检查选项卡.但是在我的laravel应用程序中,尽管chrome vue devtool扩展程序说检测到Vue.js,但chrome控制台中没有Vue选项卡.

I want to start using Vue in my laravel 5.4 app. Without laravel i can see vue devtools inspection tab on chrome. But in my laravel app the Vue tab is not there in chrome console although the chrome vue devtool extension says Vue.js is detected.

如何在laravel应用中启用Vue devtool检查?

How can i enable the Vue devtool inspection in my laravel app?

我尝试过

Vue.config.debug = true;
Vue.config.devtools = true;

在我的app.js文件上,但是没有运气.

on my app.js file but no luck.

谢谢.

推荐答案

尝试重新填充vuejs预设:

try to re-populate vuejs preset:

php artisan preset vue

这篇关于在laravel 5.4中启用Vue Devtools检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆