mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-03 00:26:40 +08:00
注释一堆注释
This commit is contained in:
parent
578f0b883c
commit
4733de20b2
@ -20,7 +20,7 @@ async function handle(
|
||||
try {
|
||||
const skip = Number(searchParams.get("skip"));
|
||||
const take = Number(searchParams.get("take"));
|
||||
console.log("-----", skip, take);
|
||||
// console.log("-----", skip, take);
|
||||
const result = searchText
|
||||
? await prisma.user.findMany({
|
||||
orderBy: {
|
||||
|
@ -272,7 +272,7 @@ export async function saveLogs(logData: {
|
||||
data: logData,
|
||||
});
|
||||
} catch (e) {
|
||||
console.log("-------[debug log2]", logData);
|
||||
// console.log("-------[debug log2]", logData);
|
||||
delete logData?.userID;
|
||||
const result = await prisma.logEntry.create({
|
||||
data: logData,
|
||||
|
@ -76,7 +76,7 @@ export default function UserLoginCore() {
|
||||
redirect: false,
|
||||
email: values.email,
|
||||
}).then((result) => {
|
||||
console.log("33333333333", result);
|
||||
// console.log("33333333333", result);
|
||||
setCapLoading(false);
|
||||
setTimeLeft(60);
|
||||
});
|
||||
@ -110,7 +110,7 @@ export default function UserLoginCore() {
|
||||
fetch(
|
||||
`/api/auth/callback/email?token=${values.cap}&email=${values.email}`,
|
||||
).then((result) => {
|
||||
console.log("------------", result);
|
||||
// console.log("------------", result);
|
||||
if (result.redirected) {
|
||||
window.location.href = result.url;
|
||||
}
|
||||
|
@ -366,7 +366,6 @@ function ChatAction(props: {
|
||||
if (props.text.includes("使用") || allModels.includes(props.text)) {
|
||||
customModelClassName = "chat-input-action-long-weight";
|
||||
}
|
||||
console.log("123123123", props.text);
|
||||
|
||||
function updateWidth() {
|
||||
if (!iconRef.current || !textRef.current) return;
|
||||
|
@ -227,7 +227,7 @@ export const useChatStore = createPersistStore(
|
||||
newSession(mask?: Mask, currentModel?: Mask["modelConfig"]["model"]) {
|
||||
const session = createEmptySession();
|
||||
const config = useAppConfig.getState();
|
||||
console.log("------", session, "2222", config);
|
||||
// console.log("------", session, "2222", config);
|
||||
// 继承当前会话的模型
|
||||
if (currentModel) {
|
||||
session.mask.modelConfig.model = currentModel;
|
||||
|
Loading…
Reference in New Issue
Block a user