Fixed client api error link
Fixed
### Motivation
The current version only includes 2.5.0-SNAPSHOT, not 2.5.1-SNAPSHOT, so 2.5.0-SNAPSHOT is used.
### Modifications
* Fix version number replacement problem
### Verifying this change
Local test pass
@@ -91,8 +91,8 @@ function clientVersionUrl(version, type) {
var minorVersion = parseInt(versions[1])
if (majorVersion === 2 && minorVersion < 5) {
return `/api/` + type + `/` + version;
- } else if (majorVersion === 2 && minorVersion >= 5) {
- return `/api/` + type + `/` + version + `-SNAPSHOT`
+ } else if (majorVersion >= 2 && minorVersion >= 5) {
+ return `/api/` + type + `/` + majorVersion + `.` + minorVersion + `.0` + `-SNAPSHOT`
}
}
