摘要:
devServer: { proxy: { '/api': { target: process.env.VUE_APP_API_URL, //根据serve build test 不同命令进行不同的更换 changeOrigin: true, logLevel: 'debug', //查看代理地址日
阅读全文
posted @ 2022-01-29 14:57
热心市民宗某§
阅读(16)
推荐(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
热心市民宗某§
阅读(27)
推荐(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
热心市民宗某§
阅读(1833)
推荐(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
热心市民宗某§
阅读(152)
推荐(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
热心市民宗某§
阅读(44)
推荐(0)
posted @ 2022-01-20 15:42
热心市民宗某§
阅读(30)
推荐(0)
摘要:
1、先建一个分支(所有的改动都是在分支上) git branch 分支名 2、切换到新建的分支然后就可以开发了 git checkout 刚才新建的分支名 3、开发完后提交代码到分支上 git add . git commit -m “” 4、然后切换至主支上 git checkout master
阅读全文
posted @ 2022-01-13 18:22
热心市民宗某§
阅读(28)
推荐(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
热心市民宗某§
阅读(30)
推荐(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
热心市民宗某§
阅读(23)
推荐(0)
摘要:
1、Vue.set()是将set函数绑定在Vue构造函数上,this.$set()是将set函数绑定在Vue原型上。 2、excel导出源代码 const blob = new Blob([response.data], {type: "application/vnd.ms-excel"}); co
阅读全文
posted @ 2021-12-30 18:20
热心市民宗某§
阅读(25)
推荐(0)