摘要: 1、下载 cnpm i qrcodejs2 -S 2、引入 import qrcode from qrcodejs2 3、 creatQrCode(QrCodeUrl) { new QRCode(this.$refs.qrCodeUrl, { text: QrCodeUrl, // 基础路径 wid 阅读全文
posted @ 2022-03-09 09:41 热心市民宗某§ 阅读(17) 评论(0) 推荐(0) 编辑
摘要: devServer: { proxy: { '/api': { target: process.env.VUE_APP_API_URL, //根据serve build test 不同命令进行不同的更换 changeOrigin: true, logLevel: 'debug', //查看代理地址日 阅读全文
posted @ 2022-01-29 14:57 热心市民宗某§ 阅读(11) 评论(0) 推荐(0) 编辑
摘要: //开发环境配置 .env.developmentNODE_ENV = 'development'VUE_APP_MODE = 'development'VUE_APP_API_HOST = ''VUE_APP_API_URL = 'http://172.16.30.196:1100' //生产环境 阅读全文
posted @ 2022-01-29 14:54 热心市民宗某§ 阅读(22) 评论(0) 推荐(0) 编辑
摘要: $ git config --global --replace-all user.name "要修改的用户名" $ git config --global --replace-all user.email"要修改的邮箱" $ git config --global --replace-all use 阅读全文
posted @ 2022-01-29 10:03 热心市民宗某§ 阅读(1794) 评论(0) 推荐(0) 编辑
摘要: 1、引入 https://cdn.bootcss.com/crypto-js/3.1.9-1/crypto-js.min.js 2、 function encrypt(word, keyStr) { //加密 keyStr = keyStr ? keyStr : '123456789qazwsxe' 阅读全文
posted @ 2022-01-27 15:58 热心市民宗某§ 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1、删除项目原有隐藏git文件夹 2、git init 3、git remote add origin 关联仓库地址 4、git add . 5、git commit -m '信息' 6、git push -u origin master 阅读全文
posted @ 2022-01-24 14:19 热心市民宗某§ 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1、 2、 阅读全文
posted @ 2022-01-20 15:42 热心市民宗某§ 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1、先建一个分支(所有的改动都是在分支上) git branch 分支名 2、切换到新建的分支然后就可以开发了 git checkout 刚才新建的分支名 3、开发完后提交代码到分支上 git add . git commit -m “” 4、然后切换至主支上 git checkout master 阅读全文
posted @ 2022-01-13 18:22 热心市民宗某§ 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1、判断简化: if(a== 1 || a == undefined a == null || a==15){ ... } 可转化为:if( [1, undefined, null, 15].includes(a) ){...} 2、清空数组array.length = 0 3、但是使用concat 阅读全文
posted @ 2022-01-12 17:46 热心市民宗某§ 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1、解构赋值被结构的对象不能为undefined或null,否则会报错 const {a,b,c,d,e} = obj || {}; 2、Promise.all并发 const fn = () =>{ Promise.all([fn1(),fn2()]).then(res =>{ console.l 阅读全文
posted @ 2022-01-05 18:06 热心市民宗某§ 阅读(9) 评论(0) 推荐(0) 编辑