vue
gz-郭小敏
这个作者很懒,什么都没留下…
展开
-
【vue】vue-cli路由操作
<router-link to="/create">按钮</router-link>原创 2020-08-04 13:51:32 · 230 阅读 · 0 评论 -
【vue】报错:mapState is not defined
场景:vue-cli项目引入了vuex,在vue component模块中调用以下代码报错。export default { computed:{ ...mapState({ isLogin: state => state.isLogin, userName:state => state.userName, }), }}错误:App.vue...原创 2019-04-16 17:09:04 · 15791 阅读 · 1 评论 -
win定制执行python脚本(记录csdn博客阅读量和评论量变化)
技术栈:ui框架:element-ui框架前端框架:vue-cli后端框架:koa前、后语言:javascript爬虫语言:python爬虫代码(定时执行)https://github.com/guosimin/python-spider/tree/master/csdnTest/csdn-test.py1.创建基本任务2.命名3.定义执行时间...原创 2019-04-02 15:13:55 · 159 阅读 · 0 评论 -
【vue】vue 使用highlight.js的坑:highlight效果经常没有了
首先,我说下我为啥会遇到这个吭。。。。项目如下:https://github.com/guosimin/data-management, 当然如果给我来个star,我会很开心的。1.我用的是vue-cli 搭建的前端项目2.我的内容来源是csdn中的博文,而博文里面用到的代码通过调用highlight.js实现的3.原本我可以考虑通过Selenium爬取调用后的结果,这样样式能...原创 2019-04-10 17:20:55 · 12053 阅读 · 6 评论 -
【vue】利用koa-cors实现vue-cli项目的跨域请求后端
错误提示:Access to XMLHttpRequest at 'http://localhost:7777/charts/query' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control c...原创 2019-03-27 18:51:45 · 1850 阅读 · 0 评论 -
【vue】搭建vue-cli脚手架(超详细攻略并附上具体操作截图)
在使用vue-cli之前,请确认你的电脑已经安装了 node,建议版本在 8.0.0 以上1.安装 webpack-cli (这里我们确认已安装过node)a.检查之前是否安装过:下面这个样子的肯定是没成功的,成功的话会出现对应的版本号b.反正我先用使用npm install webpack -g 命令安装一下:c.再次测试,发现还没成功,提示需要安装webpack-c...原创 2019-03-22 14:40:42 · 175 阅读 · 0 评论 -
[Vue warn]: Property or method "verify" is not defined on the instance but referenced during render.
还是做回自己博客发布系统的练习项目,结果一不小心掉到自己的坑里。先看报错:[Vue warn]: Property or method "verify" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the da...原创 2018-11-23 17:47:28 · 7721 阅读 · 0 评论 -
r is not a constructor报错
刚刚想通过npm方式引入vue,结果却报r is not a constructor;解决方法:import Vue from 'vue'原创 2018-10-11 17:07:19 · 5938 阅读 · 0 评论 -
引入wangEditor时工具栏部分无效问题
为自己项目引入vue后,原来没有任何问题的wangEditor组件的工具栏突然不能用了。然后发现用这篇博客中的方法可以解决:引入wangEditor或ueditor时工具栏部分无效问题//初始化编辑器function _initEditor() { let E = window.wangEditor; let domName = "#input-area__textarea...原创 2018-10-16 16:55:39 · 7019 阅读 · 0 评论 -
神奇的vue引入
最近弄项目想引入vue,通过import的方式出现了问题,但是通过外链的方式却不会,其中报错如下:[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render fu...原创 2018-10-16 11:07:49 · 448 阅读 · 0 评论 -
如何给vue的href添加拼接参数
原来一直使用angular,而vue的用法和angualr相似,故我默认以为vue的href添加拼接参数的写法为:<a href="/list/editor?name={{item.title}}">链接</a>然测试发现这是不可行的,需要用以下方法:<a :href="'/list/editor?name='+item.title">链接<...原创 2018-10-17 11:54:45 · 10047 阅读 · 3 评论