wip: setup favorites and autologin with rest api

This commit is contained in:
Roberto Tonino
2021-03-01 23:09:14 +01:00
parent 079fd8ad64
commit b0efec811e
7 changed files with 69 additions and 60 deletions

View File

@@ -1,4 +1,5 @@
import { socket } from '@/utils/socket'
import { fetchData } from '@/utils/api'
let chartsData = {}
let cached = false
@@ -8,6 +9,7 @@ export function getChartsData() {
return chartsData
} else {
socket.emit('get_charts_data')
fetchData('getCharts')
return new Promise((resolve, reject) => {
socket.on('init_charts', data => {