mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-24 05:45:18 +08:00
初步实现对象存储源站
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user