mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 04:33:42 +08:00
优化一键填入过程
This commit is contained in:
@@ -1436,6 +1436,12 @@ function _Chat() {
|
||||
|
||||
if (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 {
|
||||
console.error("[Command] failed to get settings from url: ", text);
|
||||
|
||||
Reference in New Issue
Block a user