Skip to content

Commit

Permalink
Merge branch 'RollingPaper42:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkingco authored Nov 8, 2023
2 parents 1cd12bb + a57cf49 commit 9e4a40f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export default function Home() {
<div className=" bg-lime-300">
<div className=" p-5">
{text.map((item) => {
return <ObserveComponent content={item.content}></ObserveComponent>;
return (
<ObserveComponent
key={item.id}
content={item.content}
></ObserveComponent>
);
})}
</div>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/utils/axios.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import axios from 'axios';

export const axiosInstance = axios.create();

axiosInstance.interceptors.request.use(function setConfig(config) {
config.withCredentials = true;
return config;
});

0 comments on commit 9e4a40f

Please sign in to comment.