small updates
This commit is contained in:
@@ -37,7 +37,8 @@ export default {
|
||||
try {
|
||||
const [start, end] = [window.value.getStart(), window.value.getEnd()]
|
||||
const sample = Math.round((end - start) / 60 / 288) || 1
|
||||
const host = process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : ''
|
||||
console.log(import.meta.env.MODE)
|
||||
const host = import.meta.env.MODE === 'development' ? 'http://localhost:3000' : ''
|
||||
const fetchUrl = `${host}/type/${typeApi[type.value]}/startDate/${start}/endDate/${end}/sample/${sample}`
|
||||
const response = await fetch(fetchUrl)
|
||||
data.value = await response.json()
|
||||
|
||||
@@ -27,7 +27,6 @@ export default {
|
||||
const currentRoute = router.currentRoute
|
||||
if (currentRoute.value.params.type) type.value = currentRoute.value.params.type
|
||||
if (currentRoute.value.params.window) window.value = { label: currentRoute.value.params.window }
|
||||
console.log(type.value, window.value)
|
||||
const updateRoute = () => {
|
||||
if (type.value) {
|
||||
const route = {
|
||||
|
||||
Reference in New Issue
Block a user