- 博客(5)
- 收藏
- 关注
原创 为Git配置多个SSH Key
为 Git 配置多个SSH Key 查看已生成的SSH Key $ cat ~/.ssh/id_rsa.pub 生成另外的SSH Key $ ssh-keygen -t rsa -C '在这里输入你的邮箱' -f ~/.ssh/新的文件名_id_rsa 选择配置项的时候一路回车, 使用默认值即可. 成功后, 可以看到~/.ssh目录下新增了两个文件. cat ~/.ssh/新的文件名_id_rsa.pub 使用该命令查看新生成的SSH Key, 将其添加到仓库中. 配置SSH config 在~/
2021-12-15 17:17:05
572
原创 Vite搭建Vue 3.x + Vue Router + Vuex + TypeScript项目
Vite搭建 Vue 3.x + Vue Router + Vuex + TypeScript 项目 1. 检查Node版本 # 查看当前已安装的node版本(Vite 需要 Node.js 版本 >= 12.0.0) $ node -v 2. 使用Vite 创建项目 使用命令行工具, 在待创建项目的目录下, 运行以下命令 # 使用 NPM: $ npm init vite@latest # 使用 Yarn: $ yarn create vite 3. 选择Vite 配置项 # 输入待创建
2021-12-15 16:09:34
1659
原创 Vue跨域处理配置
根目录 -> vue.config.js: devServer: { proxy: { '/api': { target: 'http://api.example.com:8080/api', // 需要处理的接口地址的固定部分 changeOrigin: true, pathRewrite: { '^api': '' } } }, ... ... } 根目录 -> .env.development # just a .
2021-09-16 00:05:36
168
原创 img元素禁用选中、拖拽、鼠标右键功能
1. 在img元素中添加以下属性: <img class="unselectable" draggable="false" oncontextmenu="return false;" /> 其中, class="unselectable"是添加一个名为unselectable的CSS类, 用于禁用鼠标选中; draggable="false"用于禁用拖拽, oncontextmenu="return false;"用于禁用鼠标右键. 2. 添加CSS类: <style>
2021-08-08 20:36:27
6177
1
原创 使用git拉取阿里云code托管的项目中的指定分支
1. 注册阿里云(略) 2. 下载git并配置 打开Git Bash工具, 配置git的user.name和user.email, 分别对应阿里云的账户名和邮箱: git config --global user.name "在这里输入阿里云账户名" git config --global user.email "在这里输入阿里云账户绑定的邮箱" 如果需要查看配置信息, 可以使用git config --global --list命令: 3. 添加SSH 在Git Bash中工具中使用cat ~/.ss
2021-06-30 23:03:28
1525
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅