![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
mini_qiu
这个作者很懒,什么都没留下…
展开
-
Vue项目中使用el-input,在IOS上点击输入框不聚焦,弹出输入框也无法输入
为了防止在ios上长按(图片或文字)出现选中效果,在全局引入了user-select:none样式,它会影响input,textarea输入框,把该行代码注释掉就好,试了一下,果然是这个原因,就此这个问题解决原创 2021-04-23 09:55:30 · 775 阅读 · 0 评论 -
vue3中使用el-form跟el-select时出现不能选中的问题
检查el-form的ref跟model是否同名了,如果同名了,会出现很多未知的bug,比如ref双向绑定的数据可以打印,但是属性读不到之类的错误原创 2021-03-08 16:32:27 · 1393 阅读 · 0 评论 -
Vue-cli3中使用百度富文本编辑器ueditor
原文链接:https://blog.csdn.net/fuyuan98520/article/details/110224802前言:在开发项目由于需求vue自带对编辑器不能满足使用,所以改为百度编辑器,但是在网上搜索发现都讲得非常对乱,试了几个都没有,原因基本都是2.0版本的vue,3.0vue讲得非常对模糊。废话不多我们现在开始第一步:下载百度编辑器,由于官方原因,现在官方都是使用一个超大版对,我使用对旧版对JSP版,旧版JSP版可下载第二步:(1)将下载对项目重命名到publi转载 2021-03-04 17:39:37 · 1214 阅读 · 4 评论 -
vue + element UI 中省市区三级联动(vue2、vue3均可用)
https://segmentfault.com/a/1190000038504936原创 2021-03-02 16:13:21 · 502 阅读 · 0 评论 -
v-model怎么动态绑定data中的属性
有时候输入框会复用但是初始的内容会根据业务需求改变,例如下面点击按钮控制老师、学生信息切换:<!-- 正确的写法 --><input v-model="(flag ? student:teacher).name" /><input v-model="(flag ? student:teacher).age" /><!-- 错误的写法 --><input v-model="flag ? student.name:teacher.name"原创 2020-07-17 15:43:36 · 1733 阅读 · 0 评论 -
vue中报错:Avoided redundant navigation to current location
在vuecli项目中路由遇到Error: Avoided redundant navigation to current location:报错显示是路由重复,在router的index.js中加上这段代码:const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).c原创 2020-07-15 09:26:40 · 486 阅读 · 0 评论 -
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'
在用vue脚手架中的axios做post网络请求时遇到了这个问题发现是跨域问题查到的解决方案是在后端添加一个处理函数:后端是用nodejs搭建的,使用到了express框架app.all('*', (req, res, next) => { var origin = req.headers.origin; res.header('Access-Control-Allow...原创 2020-01-03 15:42:07 · 972 阅读 · 0 评论 -
axios 发 post 请求,后端接收不到参数的解决方案
很简单的需求:axios({ headers: { 'deviceCode': 'A95ZEF1-47B5-AC90BF3' }, method: 'post', url: '/api/lockServer/search', data: { username: username, pwd: pwd ...原创 2020-01-03 15:38:27 · 167 阅读 · 0 评论