更改 copiedHello.content 内容
This commit is contained in:
parent
7cbcedbae8
commit
5d17d7f2c9
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue