摘要: vue使用axios的回调函数中this不指向vue实例,为undefined; 需要改成箭头函数才可使this指向vue实例 阅读全文
posted @ 2021-12-24 10:15 格林格林 阅读(62) 评论(0) 推荐(0)
摘要: 在uniapp中使用axios请求接口,利用mock接口获取数据 在微信小程序运行时出错:index.js? [sm]:33 errortypeerror: l is not a function 原写法(在微信小程序不生效) import axios from 'axios'; let _url 阅读全文
posted @ 2021-11-09 16:58 格林格林 阅读(763) 评论(0) 推荐(0)
摘要: node-sass 6.0.0版本与^4.0.0不兼容 1、先卸载之前版本的node-sass npm uninstall node-sass 2、卸载后安装4.0.0版本 npm install node-sass@4.14.1 这里可能会失败,原因是你安装的淘宝镜像的问题。 如果失败了就重装淘宝 阅读全文
posted @ 2021-11-09 11:19 格林格林 阅读(1568) 评论(1) 推荐(2)
摘要: 存档备用 orderList:{ return(){ this.orderList.filter((item)=> item.state '2'); } } 阅读全文
posted @ 2021-11-08 16:49 格林格林 阅读(27) 评论(0) 推荐(0)
摘要: 一、不同方式创建uniapp的区别 通过cli命令创建出来的uniapp可以在任意编译器(vscode、webstorm等)利用npm run serve或npm run dev:h5运行 通过hbuilder创建的uniapp不可以在其他编译器运行(尝试过迁移项目,失败,会出现插件缺失或路径等各种 阅读全文
posted @ 2021-11-01 10:01 格林格林 阅读(981) 评论(0) 推荐(0)
摘要: 存档备用 =A= package.json { "name": "my-fish", "version": "0.1.0", "private": true, "scripts": { "serve": "npm run dev:h5", "build": "npm run build:h5", " 阅读全文
posted @ 2021-10-29 11:25 格林格林 阅读(741) 评论(0) 推荐(0)
摘要: webstorm中运行uniapp:npm run dev:h5 错误信息如下: D:\uniapp-Project\cga-miniapp-208\4-Invoice>npm run dev:h5 > 4-Invoice@0.1.0 dev:h5 D:\uniapp-Project\cga-min 阅读全文
posted @ 2021-10-29 11:12 格林格林 阅读(1099) 评论(0) 推荐(0)
摘要: 设置 --> 插件 --> HTTP代理设置 --> automatic proxy url 里输入http://127.0.0.1:1080,然后重启就可以了 阅读全文
posted @ 2021-10-22 15:55 格林格林 阅读(1154) 评论(0) 推荐(0)
摘要: 按ctrl+alt+L格式化后,rpx单位前会出现空格,导致样式失效 解决方法: 在 设置-->工具-->File Watchers 配置 Progress位置为sed的所在位置 sed的下载路径(适用windows10 x64):https://gitee.com/Leexinxian/littl 阅读全文
posted @ 2021-10-22 13:42 格林格林 阅读(608) 评论(0) 推荐(0)
摘要: // vue <u-input class="input-style m-b-8" v-model="emailAddress" :type="type" :border="border" :trim="trim" @blur="doInput(emailAddress)" placeholder= 阅读全文
posted @ 2021-10-22 13:19 格林格林 阅读(474) 评论(0) 推荐(0)