This commit is contained in:
Nguyễn Hải Dũng
2022-12-20 17:00:23 +07:00
parent 038e12820b
commit 061f3da142
11 changed files with 51 additions and 38 deletions

View File

@@ -53,7 +53,11 @@ const ModalUser = (props) => {
const getLevel = async () => {
let result = await axios.get(`${HOST}/api/levels/company/1`)
const headers = {
'Content-Type': 'application/json',
'Authorization': Store.getState().isLogin.access_token,
}
let result = await axios.get(`${HOST}/api/levels/company/1`, {headers} )
if (result.data.status === 10000) {
var listOptions = []
for (let i = 0; i < result.data.data.length; i++) {