add access token

This commit is contained in:
Nguyễn Hải Dũng
2022-12-20 10:49:41 +07:00
parent 11cec7054b
commit d87ed2c096
14 changed files with 45 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ import React, { useEffect, useRef, useState } from 'react';
import { Button, Modal } from 'react-bootstrap';
import swal from 'sweetalert';
import { HOST } from '../../config/index';
import Store from '../../store';
const { Option } = Select;
@@ -85,6 +86,7 @@ const ModalUser = (props) => {
'Accept': 'application/json',
'Content-Type': 'application/json',
// 'Authorization': token,
'Authorization': Store.getState().isLogin.access_token,
},
data: dataPost,
})