
vue
xxxxxxxxYZ
这个作者很懒,什么都没留下…
展开
-
vue遇见的问题(3) --- Unnecessary return statement no-useless-return
错误不必要的return语句没有无用的回报修改前://添加新用户addUser(){this.$resf.addFormRef.validate(valid=>{console.log(valid)if(!valid){return}})}...原创 2020-06-02 16:11:22 · 3593 阅读 · 0 评论 -
vue遇见的问题(2)---imported multiple times
问题:element-ui import次数过多解决方式:将要引入的组件写在一起,只写一个import { Button, Form, FormItem, Input } from ‘element-ui’原创 2020-05-15 22:49:25 · 6826 阅读 · 2 评论 -
vue遇见的问题(1)---注释问题
问题:用VS Code 写 Vue组件 ,用快捷键 alt+/ 注释出现的是 // ,而不是<!--头像区域-->。解决方式: 首先在VS Code 安装Vue 2 Snippets插件。 其次在settings.json中添加:"files.associations": {"*.vue": "html"}。 ...原创 2020-05-15 22:44:31 · 782 阅读 · 0 评论 -
vuecli3.0 引入vant报错Cannot find module 'babel-plugin-import' from ' '解决方法
error in ./src/main.jsModule build failed (from ./node_modules/babel-loader/lib/index.js):Error: Cannot find module 'babel-plugin-import' from 'd:\code\vue-test-0731'at Function.modul...原创 2019-08-01 11:12:30 · 41271 阅读 · 5 评论 -
vue 报错 Property or method "name" is not defined on the instance but referenced解决方法
bannerPicArray 没有定义,设置一个初始值即可原创 2019-08-08 14:27:36 · 13318 阅读 · 0 评论 -
VUE报错[Vue warn]: Invalid prop: type check failed for prop "options"...解决方法
vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: type check failed for prop "options". Expected Object, got String with value "".原创 2019-08-09 17:46:40 · 25236 阅读 · 4 评论 -
vue +koa报错--koa-cors使用的坑 No Access-Control-Allow-Origin header is present ..解决方法
vue报错:Access to XMLHttpRequest at 'http://localhost:3000/User/register' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the...原创 2019-08-12 15:40:12 · 2166 阅读 · 3 评论