small refac
Some checks are pending
Test / build (lts/*, ubuntu-latest) (push) Waiting to run
Test / build (lts/*, windows-latest) (push) Waiting to run

This commit is contained in:
Dustella 2025-01-23 22:23:24 +08:00
parent d700b28fb6
commit 3bca8d15c5
Signed by: Dustella
GPG Key ID: 35AA0AA3DC402D5C
4 changed files with 17 additions and 11 deletions

View File

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

View File

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

View File

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