small refac

This commit is contained in:
Dustella 2025-01-23 22:23:24 +08:00
parent 69df9232e0
commit 949ebf420a
4 changed files with 17 additions and 11 deletions

View File

@ -20,9 +20,10 @@ const selected = reactive({
})
const urll = computed(() => {
const path = encodeURIComponent(selected.path)
const day = encodeURIComponent(selected.day)
const query = `path=${path}&day=${day}&cycle_no=${selected.cycle_no}`
const query = new URLSearchParams()
query.set('path', selected.path)
query.set('day', selected.day)
query.set('cycle_no', selected.cycle_no.toString())
return `${API_BASE_URL}/saber/render/day_cycle_power_wave_plot?${query}`
})

View File

@ -20,9 +20,13 @@ const selected = reactive({
})
const urll = computed(() => {
const path = encodeURIComponent(selected.path)
const day = encodeURIComponent(selected.day)
const query = `path=${path}&day=${day}&cycle_no=${selected.cycle_no}`
// const path = encodeURIComponent(selected.path)
// const day = encodeURIComponent(selected.day)
// const query = `path=${path}&day=${day}&cycle_no=${selected.cycle_no}`
const query = new URLSearchParams()
query.set('path', selected.path)
query.set('day', selected.day)
query.set('cycle_no', selected.cycle_no.toString())
return `${API_BASE_URL}/saber/render/day_fft_ifft_plot?${query}`
})

View File

@ -18,8 +18,8 @@ const selected = reactive({
})
const urll = computed(() => {
const path = encodeURIComponent(selected.path)
const query = `path=${path}`
const query = new URLSearchParams()
query.set('path', selected.path)
return `${API_BASE_URL}/saber/render/month_power_wave_plot?${query}`
})

View File

@ -20,9 +20,10 @@ const selected = reactive({
})
const urll = computed(() => {
const path = encodeURIComponent(selected.path)
const day = encodeURIComponent(selected.day)
const query = `path=${path}&day=${day}&height=${selected.height_no}`
const query = new URLSearchParams()
query.set('path', selected.path)
query.set('day', selected.day)
query.set('height_no', selected.height_no.toString())
return `${API_BASE_URL}/saber/render/plot_wave_fitting?${query}`
})