摘要:
1、拉取最后一次提交后狀態(tài)的代碼git clone --depth=1 http://xxx.git 2、執(zhí)行后續(xù)操作 # 拉取完整當(dāng)前分支 git fetch --unshallow # 追蹤所有遠(yuǎn)程分支 git remote set-branches origin '*' # 拉取所有遠(yuǎn)程分支
閱讀全文
posted @ 2023-07-18 10:50
鹽孩兒
閱讀(2001)
推薦(0)
摘要:
const NodeRSA = require('node-rsa'); // 使用公鑰加密 export function encrypt (msg,commonKey) { const key = new NodeRSA(` BEGIN PUBLIC KEY ${commonKey} END P
閱讀全文
posted @ 2023-07-07 16:54
鹽孩兒
閱讀(912)
推薦(0)
摘要:
1 clone老項(xiàng)目 # git clone git@xxxx/demo.git 2 進(jìn)入到demo目錄 # cd demo 3 移除老項(xiàng)目的地址替換成新項(xiàng)目 # git remote set-url --push origin git@xxx/account.git 4 將鏡像推到遠(yuǎn)程 # git
閱讀全文
posted @ 2023-05-17 11:08
鹽孩兒
閱讀(768)
推薦(0)
摘要:
[[1,2,3],[[1,2],[2,3]]].flat(num) //num可以寫數(shù)字,也可以寫Infinity (無窮大),數(shù)字代表降維幾層,Infinity 則表示全部
閱讀全文
posted @ 2023-04-03 16:50
鹽孩兒
閱讀(35)
推薦(0)
摘要:
eslint配置方法 eslint的規(guī)則有三個(gè)選項(xiàng): "off"或者0,不啟用這個(gè)規(guī)則 "warn"或者1,出現(xiàn)問題會有警告 "error"或者2,出現(xiàn)問題會報(bào)錯(cuò) 在根目錄創(chuàng)建.eslintrc.js,代碼如下: module.exports = { // 默認(rèn)情況下,ESLint會在所有父級組件中
閱讀全文
posted @ 2023-03-17 14:34
鹽孩兒
閱讀(684)
推薦(0)
posted @ 2023-03-16 17:29
鹽孩兒
閱讀(15)
推薦(0)
摘要:
pageAninmate vue-router實(shí)現(xiàn)webApp切換效果 快速集成 1.復(fù)制PageTransittion.vue到項(xiàng)目目錄。 2.修改router配置。 Router.prototype.goBack = function () { this.isBack = true window
閱讀全文
posted @ 2023-03-03 14:37
鹽孩兒
閱讀(186)
推薦(0)
摘要:
GitLab用戶權(quán)限管理: GitLab用戶在組中有五種權(quán)限:Guest、Reporter、Developer、Master、Owner 1.Guest:可以創(chuàng)建issue、發(fā)表評論、不能讀寫版本庫 2.Reporter:可以克隆代碼,不能提交,QA、PM可以賦予這個(gè)權(quán)限 3.Developer:可
閱讀全文
posted @ 2023-02-08 13:40
鹽孩兒
閱讀(527)
推薦(0)
摘要:
import CryptoJS from "crypto-js" //秘鑰(后端提供)由于對稱解密使用的算法是 AES-128-CBC算法,數(shù)據(jù)采用 PKCS#7 填充 , 因此這里的 key 需要為16位! var key = CryptoJS.enc.Latin1.parse("xxxxxx")
閱讀全文
posted @ 2022-11-18 16:57
鹽孩兒
閱讀(705)
推薦(0)
摘要:
1、以下僅適用于數(shù)據(jù)長度短,長的話會報(bào)錯(cuò)import { JSEncrypt } from 'jsencrypt' // 公鑰 const key = `xxxx` // 私鑰 const privateKey = `xxxxsss` // 加密 export function encrypt (m
閱讀全文
posted @ 2022-11-18 16:48
鹽孩兒
閱讀(615)
推薦(0)