Chase620 Chase620
4年前
记录Vue项目实现axios请求头带上token
在vue项目中首先npm命令安装axios:npminstallaxiosSaxios的封装使用请求带上token,token通过登录获取存在vuex,为防止刷新丢失token使用持久化vuexpersistedstate插件保存数据npmiSvuexpersistedstateimportpersistedStat
Damumu Damumu
2年前
使用webpack配置TS项目
初始化项目准备工作:首先要安装node,node官网:https://nodejs.org/en/全局安装npmnpminstallglobalgulpnpm安装typescriptnpminstallgtypescript开始初始化项目通过执行命令npm
lucien-ma lucien-ma
4年前
Git避免每次都要输入密码,SSH公钥的生成和绑定
设置本机绑定SSH公钥,实现免密码登录在我们平时写完代码提交的时候,每次都要输入账号和密码,很烦很烦,浪费时间,这篇文章的目的就是为了让大家变的更加轻松配置SSH公钥实现免密提交:生成公钥sshkeygentrsa然后在C:\Users\ASUS\.ssh路径下找到idrsa.pub文件将里面的内容复制(ASUS是我当前用户的用户名
九鹤 九鹤
4年前
GraphQL
GraphQL一种api文档查询语言基本语法本地运行javagitclonehttps://github.com/apollographql/starwarsservercdstarwarsservernpminstallnpmstart执行上面的命令之后打开下面的地址即可学习http://localhost:8080/grap
Easter79 Easter79
3年前
SpringCloudAlibaba(2)
1\.以单机模式启动Nacous,启动命令startup.cmdmstandalone2.使用postman向NacosServer发布配置:dataId为example.properties,内容为useLocalCachetruehttp://127.0.0.1:8848/nacos/v1/cs/configs?dat
Stella981 Stella981
3年前
GIT 本地仓库提交到码云,Linux仓库自动拉取
本地windows10,托管平台码云,另一个远程仓库环境Linux 1首先码云新建仓库!(https://oscimg.oschina.net/oscnet/21393ba6c4077647364780189a16ec41cb2.png)2windows本地拉取刚才项目 !(https://img2018.cnblo
Wesley13 Wesley13
3年前
MySQL学习笔记之一
MySQL装有一个名为mysql的命令行,在提示符下输入mysql将出现如下的简单提示:➜~mysqlWelcometotheMySQLmonitor.Commandsendwith;or\g.YourMySQLconnectionidis135Serverversion:5.5.350ubuntu
Wesley13 Wesley13
3年前
ubuntu16.04 git 更新后配置了ssh后却依旧报错
sign\_and\_send\_pubkey:signingfailed:agentrefusedoperationPermissiondenied(publickey).解决方案:1.删除.ssh文件夹下id\_rsa文件2.生成sshkey sshkeygenotrsaC"your.emai
Wesley13 Wesley13
3年前
ubuntu 下搭建redis和php的redis的拓展
系统环境:腾讯云服务器,ubuntu16.0.4.4,php7.0一.安装redis服务sudoaptgetinstallredisserver安装好的redis目录在/etc/redis\也可使用命令whereisredis查找\启动:sudoserviceredisserverst
十月飞翔 十月飞翔
3年前
Allure FAQ
生成测试报告命令pytestsqalluredirresults生成json格式报告文件alluregenerate./unit/allureresulto./unit/allurereport处理json生成xml,未渲染,打开报loading错误直接在pycharm中右击allure报