added user csv data

This commit is contained in:
2021-08-23 17:07:42 +05:30
parent e87af8fa3a
commit a6b43b2147
44 changed files with 6 additions and 202 deletions

View File

@ -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;
});