mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-20 04:30:17 +09:00
优化一键填入过程
This commit is contained in:
parent
a5289b39d0
commit
d08af47342
@ -1436,6 +1436,12 @@ function _Chat() {
|
|||||||
|
|
||||||
if (payload.code) {
|
if (payload.code) {
|
||||||
accessStore.update((access) => (access.accessCode = payload.code!));
|
accessStore.update((access) => (access.accessCode = payload.code!));
|
||||||
|
if (accessStore.isAuthorized()) {
|
||||||
|
context.pop();
|
||||||
|
const copiedHello = Object.assign({}, BOT_HELLO);
|
||||||
|
context.push(copiedHello);
|
||||||
|
setUserInput(" ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
console.error("[Command] failed to get settings from url: ", text);
|
console.error("[Command] failed to get settings from url: ", text);
|
||||||
|
Loading…
Reference in New Issue
Block a user