初步实现对象存储源站

This commit is contained in:
GoEdgeLab
2023-06-07 17:24:56 +08:00
parent 24db40540b
commit 7e6e2b6889
19 changed files with 587 additions and 255 deletions

View File

@@ -1,11 +1,22 @@
Tea.context(function () {
this.addrError = ""
this.isOSS = this.origin != null && this.origin.protocol != null && this.origin.protocol.startsWith("oss:")
// 预先设置oss选项
if (!this.isOSS) {
this.origin.oss = {
type: "",
options: {}
}
}
this.$delay(function () {
this.checkPort()
})
this.changeProtocol = function () {
this.isOSS = this.origin.protocol.startsWith("oss:")
this.checkPort()
}