更改 copiedHello.content 内容

This commit is contained in:
Ted 2025-02-19 13:56:32 +08:00
parent 7cbcedbae8
commit 5d17d7f2c9
1 changed files with 5 additions and 1 deletions

View File

@ -1283,6 +1283,7 @@ function _Chat() {
});
};
const appstore = useAppConfig();
const accessStore = useAccessStore();
const [speechStatus, setSpeechStatus] = useState(false);
const [speechLoading, setSpeechLoading] = useState(false);
@ -1340,7 +1341,10 @@ function _Chat() {
) {
const copiedHello = Object.assign({}, BOT_HELLO);
if (!accessStore.isAuthorized()) {
copiedHello.content = Locale.Error.Unauthorized;
if (!isEmpty(appstore.omeToken)) {
} else {
copiedHello.content = Locale.Error.Unauthorized;
}
}
context.push(copiedHello);
}