added user csv data
This commit is contained in:
@ -5,6 +5,7 @@ import Cookies from 'universal-cookie';
|
||||
import {
|
||||
Redirect,
|
||||
Route,
|
||||
useLocation,
|
||||
Switch
|
||||
} from 'react-router-dom'
|
||||
import { CContainer, CFade } from '@coreui/react'
|
||||
@ -94,7 +95,11 @@ const TheContent = () => {
|
||||
const _email = UserData.email;
|
||||
const _empcode = UserData.employee_code;
|
||||
const json_str = '[{"firstname": "' + _firstname + '", "lastname":"' +_lastname+ '", "email":" ' + _email + '", "empcode": "' + _empcode + '"}]';
|
||||
postUserData(json_str);
|
||||
if(_empcode !== null && _empcode !== undefined){
|
||||
const location = useLocation();
|
||||
console.log(location.pathname);
|
||||
postUserData(json_str);
|
||||
}
|
||||
console.log(json_str);
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user