mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 12:10:17 +09:00
优化一键填入过程
This commit is contained in:
parent
a5289b39d0
commit
d08af47342
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user