wip: setup favorites and autologin with rest api
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user