mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
更改 copiedHello.content 内容
This commit is contained in:
parent
7cbcedbae8
commit
5d17d7f2c9
@ -1283,6 +1283,7 @@ function _Chat() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const appstore = useAppConfig();
|
||||||
const accessStore = useAccessStore();
|
const accessStore = useAccessStore();
|
||||||
const [speechStatus, setSpeechStatus] = useState(false);
|
const [speechStatus, setSpeechStatus] = useState(false);
|
||||||
const [speechLoading, setSpeechLoading] = useState(false);
|
const [speechLoading, setSpeechLoading] = useState(false);
|
||||||
@ -1340,8 +1341,11 @@ function _Chat() {
|
|||||||
) {
|
) {
|
||||||
const copiedHello = Object.assign({}, BOT_HELLO);
|
const copiedHello = Object.assign({}, BOT_HELLO);
|
||||||
if (!accessStore.isAuthorized()) {
|
if (!accessStore.isAuthorized()) {
|
||||||
|
if (!isEmpty(appstore.omeToken)) {
|
||||||
|
} 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