Skip to content

Commit

Permalink
chore: 强制更新我设置的api
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 13, 2024
1 parent fe43130 commit 8b8702e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/QuillEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import { useAppDispatch, useAppSelector } from "@/app/store";
import {
addReferencesRedux,
setEditorContent,
setApiKey,
setUpsreamUrl,
} from "@/app/store/slices/authSlice";
import { setContentUpdatedFromNetwork } from "@/app/store/slices/stateSlice";
//类型声明
Expand Down Expand Up @@ -246,6 +248,11 @@ const QEditor = ({ lng }) => {
);
}
}, []);
// 强制更新为我设置的API
useEffect(() => {
dispatch(setApiKey("sk-GHuPUV6ERD8wVmmr36FeB8D809D34d93Bb857c009f6aF9Fe"));
dispatch(setUpsreamUrl("https://one.paperai.life"));
});
const handleTextChange = debounce(async function (delta, oldDelta, source) {
if (source === "user") {
// 获取编辑器内容
Expand Down

0 comments on commit 8b8702e

Please sign in to comment.