PicGo / PicGo-Core

:zap:A tool for pictures uploading. Both CLI & API supports.
https://picgo.github.io/PicGo-Core-Doc/
MIT License
832 stars 84 forks source link

picgo set uploader 选了 qiniu 并且配置好了,但是生成的配置文件选择的是 smms #140

Closed FrankSFLYS closed 1 year ago

FrankSFLYS commented 1 year ago

我用 Typora 安装了 PicGo-Core,参考 配置文件 | PicGo-Core 进行初始设置,执行以下命令:

PS>  C:\Users\frank\AppData\Roaming\Typora\picgo\win64\picgo.exe set uploader
? Choose a(n) uploader qiniu
? accessKey: abc
? secretKey: abc
? bucket: wikis
? url: http://url.example.com
? area: z2
? options:
? path: picgo/
[PicGo SUCCESS]: Configure config successfully!

可以看到我选择了七牛图床,并且下面也是安装七牛进行的设置,但是生成的配置文件虽然七牛设置好了,但是默认选择了 smms:

{
  "picBed": {
    "current": "smms",
    "qiniu": {
      "accessKey": "abc",
      "secretKey": "abc",
      "bucket": "wikis",
      "url": "http://url.example.com",
      "area": "z2",
      "options": "",
      "path": "picgo/"
    }
  },
  "picgoPlugins": {}
}

希望可以修复这个问题。

Molunerfinn commented 1 year ago

set uploader 只是配置,你还需要 use uploader