mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 19:46:37 +08:00
add prompt
This commit is contained in:
parent
4a4039bd7d
commit
b4d60b0047
@ -589,8 +589,13 @@ export function Chat(props: {
|
|||||||
) {
|
) {
|
||||||
const copiedHello = Object.assign({}, BOT_HELLO);
|
const copiedHello = Object.assign({}, BOT_HELLO);
|
||||||
if (!accessStore.isAuthorized()) {
|
if (!accessStore.isAuthorized()) {
|
||||||
|
var code = prompt("请输入授权码");
|
||||||
|
if(code != null) {
|
||||||
|
accessStore.updateCode(code);
|
||||||
|
} else {
|
||||||
copiedHello.content = Locale.Error.Unauthorized;
|
copiedHello.content = Locale.Error.Unauthorized;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
context.push(copiedHello);
|
context.push(copiedHello);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user