update for OS3
This commit is contained in:
@ -33,7 +33,7 @@ import "react-datepicker/dist/react-datepicker.css";
|
||||
|
||||
function Index() {
|
||||
|
||||
const baseUrl = "https://openshield.ts.bizside.biz";
|
||||
const baseUrl = "https://fbssso.ts.bizside.biz";
|
||||
|
||||
|
||||
const [data, setData] = useState([]);
|
||||
@ -48,7 +48,7 @@ function Index() {
|
||||
useEffect(() => {
|
||||
async function fetchData() {
|
||||
// You can await here
|
||||
const result = await axios('https://openshield.ts.bizside.biz/getConstructionList');
|
||||
const result = await axios('https://fbssso.ts.bizside.biz/getConstructionList');
|
||||
setData(result.data);
|
||||
}
|
||||
fetchData();
|
||||
@ -58,7 +58,7 @@ function Index() {
|
||||
async function fetchData() {
|
||||
// You can await here
|
||||
if(selectedcons !== "" && report !== "" && isDate() == true) {
|
||||
const result = await axios('https://openshield.ts.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
|
||||
const result = await axios('https://fbssso.ts.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
|
||||
setValidDates(result.data.record);
|
||||
}
|
||||
}
|
||||
@ -124,7 +124,7 @@ function Index() {
|
||||
}
|
||||
}
|
||||
|
||||
// function downloadReport(url) {
|
||||
// function downloadReport(url)
|
||||
// console.log(url);
|
||||
// fetch(url)
|
||||
// .then(response => {
|
||||
|
||||
Reference in New Issue
Block a user