Skip to content

Commit 9ac5708

Browse files
committed
enhance: core upgrader
1 parent a2fe98e commit 9ac5708

File tree

15 files changed

+694
-340
lines changed

15 files changed

+694
-340
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nginx-ui-frontend-next",
33
"private": true,
4-
"version": "1.8.4",
4+
"version": "1.9.9",
55
"type": "commonjs",
66
"scripts": {
77
"dev": "vite",

frontend/src/api/upgrade.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import http from '@/lib/http'
22

33
const upgrade = {
4-
get_latest_release() {
5-
return http.get('/upgrade/release')
4+
get_latest_release(channel: string) {
5+
return http.get('/upgrade/release', {
6+
params: {
7+
channel
8+
}
9+
})
610
},
711
current_version() {
812
return http.get('/upgrade/current')

0 commit comments

Comments
 (0)