|
@@ -301,13 +301,12 @@ function openNav() {
|
|
|
url: 'https://www.choozmo.com:8887/history_input',
|
|
|
headers: {
|
|
|
'accept': 'application/json',
|
|
|
- 'Access-Control-Allow-Origin': '*',
|
|
|
'Authorization': `Bearer ${jwt_token}`
|
|
|
}
|
|
|
}).then(res => {
|
|
|
console.log(res.data);
|
|
|
loaded_data = res.data;
|
|
|
- for (var obj of data) {
|
|
|
+ for (var obj of loaded_data) {
|
|
|
var historyList = document.querySelector('.historyList');
|
|
|
var list = document.createElement('li');
|
|
|
list.id = obj.id;
|