anln #88

Merged
yezian merged 2 commits from anln into main 2024-07-01 20:50:52 +08:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 54dad4cc4a - Show all commits

View File

@ -21,16 +21,17 @@ export default function IncomeQuerry({ children }) {
if(databoard.current&&data.week_dashboard){
createDataBoard(data.week_dashboard);
}
}, [databoard.current]);
}, [databoard.current,data]);
useEffect(() => {
if(incomeOrgin.current && data.income_from_dashboard){
createIncomeOrgin(data.income_from_dashboard);
}
}, [incomeOrgin.current]);
}, [incomeOrgin.current,data]);
const getData = async () => {
const base = webviewBaseRequest();
const signature = generateSignature({
...base,
b_mid:182308
});
try {
const response = await fetch(
@ -42,6 +43,7 @@ export default function IncomeQuerry({ children }) {
},
body: JSON.stringify({
...base,
b_mid:182308
}),
}
);