优化代码/自动去除域名中的http://和https://等,防止误填

This commit is contained in:
刘祥超
2022-07-17 17:12:44 +08:00
parent 04f8bfc975
commit aef84189a4
10 changed files with 65 additions and 30 deletions

View File

@@ -44,6 +44,9 @@ Vue.component("plan-bandwidth-ranges", {
return -1
}
if (v1.minMB == v2.minMB) {
if (v2.maxMB == 0 || v1.maxMB < v2.maxMB) {
return -1
}
return 0
}
return 1