Feature: add aliyun oss options

ISSUES CLOSED: #347
This commit is contained in:
Molunerfinn 2019-12-27 10:47:33 +08:00
parent 1b3522e536
commit a33f1adeb3
4 changed files with 13 additions and 6 deletions

View File

@ -42,7 +42,7 @@
"keycode": "^2.2.0", "keycode": "^2.2.0",
"lodash-id": "^0.14.0", "lodash-id": "^0.14.0",
"lowdb": "^1.0.0", "lowdb": "^1.0.0",
"picgo": "^1.4.2", "picgo": "^1.4.3",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-gallery": "^2.0.1", "vue-gallery": "^2.0.1",
"vue-lazyload": "^1.2.6", "vue-lazyload": "^1.2.6",

View File

@ -48,6 +48,11 @@
> >
<el-input v-model="form.path" @keyup.native.enter="confirm" placeholder="例如img/"></el-input> <el-input v-model="form.path" @keyup.native.enter="confirm" placeholder="例如img/"></el-input>
</el-form-item> </el-form-item>
<el-form-item
label="设定网址后缀"
>
<el-input v-model="form.options" @keyup.native.enter="confirm" placeholder="例如?x-oss-process=xxx"></el-input>
</el-form-item>
<el-form-item <el-form-item
label="设定自定义域名" label="设定自定义域名"
> >
@ -78,7 +83,8 @@ export default class extends Vue {
bucket: '', bucket: '',
area: '', area: '',
path: '', path: '',
customUrl: '' customUrl: '',
options: ''
} }
created () { created () {
const config = this.$db.get('picBed.aliyun') as IAliYunConfig const config = this.$db.get('picBed.aliyun') as IAliYunConfig

View File

@ -202,6 +202,7 @@ interface IAliYunConfig {
area: string, area: string,
path: string, path: string,
customUrl: string customUrl: string
options: string
} }
interface IGitHubConfig { interface IGitHubConfig {

View File

@ -8276,10 +8276,10 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
picgo@^1.4.2: picgo@^1.4.3:
version "1.4.2" version "1.4.3"
resolved "https://registry.npm.taobao.org/picgo/download/picgo-1.4.2.tgz#3a9ca1fb3c7c51c0b94036eac95a842bb022a5dc" resolved "https://registry.npm.taobao.org/picgo/download/picgo-1.4.3.tgz#6c3140d21415d96489a784c155d8d45b6a91adb5"
integrity sha1-Opyh+zx8UcC5QDbqyVqEK7Aipdw= integrity sha1-bDFA0hQV2WSJp4TBVdjUW2qRrbU=
dependencies: dependencies:
chalk "^2.4.1" chalk "^2.4.1"
commander "^2.17.0" commander "^2.17.0"