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