Skip to content

Commit d7aa17c

Browse files
committed
fix
1 parent bb42733 commit d7aa17c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pages/api/home/home.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ const Home = ({
9999
},[models])
100100

101101

102+
useEffect(() => {
103+
if(router.query.api_url){
104+
localStorage.setItem('api', router.query.api_url as string);
105+
dispatch({field: 'api', value: router.query.api_url});
106+
}
107+
}, [router.query.api_url]);
108+
109+
102110
useEffect(() => {
103111
if(router.query.api_key){
104112
localStorage.setItem('apiKey', router.query.api_key as string);

0 commit comments

Comments
 (0)