vue
wangshuai33
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Cannot read property 'get' of undefined in Vue
我使用的是Vue框架,渲染用的是axios。 在已经安装axios包和已经写好axios.js文件的前提下使用axios时报Cannot read property 'get' of undefined"错误, 后来发现是因为没有在nuxt.config.js的modules中引入axios,如图引入后不会在报错。 ...原创 2019-11-23 13:55:11 · 10241 阅读 · 0 评论 -
Cannot read property 'install' of undefined
运行项目时,报出了这个错误,百度了一下说是插件有问题注销了就好了,但有两个问题: 其一是我不知道是哪个插件有问题, 其二是我不知道怎么注销。 先说第二个问题,我百度到了, 安装插件是: npm install XXX 利用 npm 安装xxx模块到当前命令行所在目录 npm install -gxxx 利用npm安装全局模块xxx 注销插件是 npm uni...原创 2019-11-12 21:57:48 · 30552 阅读 · 0 评论 -
打开新的前端vue代码的方法
在新获得到一个vue框架代码的时候,在VScode里直接用 npm run dev 是不能运行的。 要先npm i 下载了才可以通过npm run dev 运行。 非常简单,给自己记个笔记。 ...原创 2019-09-01 14:10:52 · 506 阅读 · 0 评论 -
Vue控制台显示Vue is a constructor and should be called with the `new` keyword
Vue控制台显示Vue is a constructor and should be called with the `new` keyword 浏览器显示为 Cannot read property '_init' of null 找了好久也不知道哪里的问题,自己本身是个小白,也没处理bug的经验,百度了好久最后看到一个类似的 说问题是出在了 应该是Vue.use(Vuex); 在...原创 2019-10-13 21:52:34 · 7310 阅读 · 4 评论
分享