修复bug
This commit is contained in:
parent
2a45029c77
commit
54dad4cc4a
|
@ -21,16 +21,17 @@ export default function IncomeQuerry({ children }) {
|
||||||
if(databoard.current&&data.week_dashboard){
|
if(databoard.current&&data.week_dashboard){
|
||||||
createDataBoard(data.week_dashboard);
|
createDataBoard(data.week_dashboard);
|
||||||
}
|
}
|
||||||
}, [databoard.current]);
|
}, [databoard.current,data]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(incomeOrgin.current && data.income_from_dashboard){
|
if(incomeOrgin.current && data.income_from_dashboard){
|
||||||
createIncomeOrgin(data.income_from_dashboard);
|
createIncomeOrgin(data.income_from_dashboard);
|
||||||
}
|
}
|
||||||
}, [incomeOrgin.current]);
|
}, [incomeOrgin.current,data]);
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const base = webviewBaseRequest();
|
const base = webviewBaseRequest();
|
||||||
const signature = generateSignature({
|
const signature = generateSignature({
|
||||||
...base,
|
...base,
|
||||||
|
b_mid:182308
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
|
@ -42,6 +43,7 @@ export default function IncomeQuerry({ children }) {
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
...base,
|
...base,
|
||||||
|
b_mid:182308
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue