安裝PicGo
直接在設(shè)置中選擇PicGo-Core逻悠,然后點下載或更新會自動下載好
點擊
驗證圖片上傳選項
可以看到picgo-core的目錄
C:\Users\{username}\AppData\Roaming\Typora\picgo\win64\picgo.exe
安裝gitee-uploader插件
這里安裝兩個插件,一個是上傳到gitee的蝗锥,一個是文件重命名的。要先到picgo.exe的目錄下
.\picgo.exe install gitee-uploader super-prefix
修改配置
配置文件config.json
一般在這里C:\Users\{username}\.picgo\
{
"picBed": {
"current": "gitee",
"gitee": {
"repo": "{username}/{repoName}", // 如倉庫地址為https://gitee.com/lkl/static-file則填lkl/static-file
"token": "personal access token", // 在這里添加 https://gitee.com/profile/personal_access_tokens
"path": "imgs", // 可自定義
"customUrl": "",
"branch": "master" // 默認(rèn)分支
}
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-super-prefix": true
},
"picgo-plugin-super-prefix": {
"fileFormat": "win-YYYYMMDDHHmmss"
}
}
設(shè)置完成后可到typroa設(shè)置中再點擊驗證圖片上傳選項
驗證