fix: tips for css files load failed
This commit is contained in:
@@ -16,7 +16,10 @@ interface ErrorResultProps {
|
|||||||
|
|
||||||
function isChunkLoadError(msg?: string): boolean {
|
function isChunkLoadError(msg?: string): boolean {
|
||||||
if (typeof msg !== 'string') return false;
|
if (typeof msg !== 'string') return false;
|
||||||
return msg.includes('Loading chunk') && msg.includes('failed');
|
const jsChunkFailed = msg.includes('Loading chunk');
|
||||||
|
const cssChunkFailed = msg.includes('Loading CSS chunk');
|
||||||
|
|
||||||
|
return (jsChunkFailed || cssChunkFailed) && msg.includes('failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
const ErrorResult: React.FC<ErrorResultProps> = ({ extra }) => {
|
const ErrorResult: React.FC<ErrorResultProps> = ({ extra }) => {
|
||||||
|
|||||||
@@ -397,12 +397,6 @@ const MessageInput: React.FC<MessageInputProps> = forwardRef(
|
|||||||
onChange={handleUploadAudioChange}
|
onChange={handleUploadAudioChange}
|
||||||
></UploadAudio>
|
></UploadAudio>
|
||||||
)} */}
|
)} */}
|
||||||
{actions.includes('upload') && message.role === Roles.User && (
|
|
||||||
<UploadImg
|
|
||||||
handleUpdateImgList={handleUpdateImgList}
|
|
||||||
size="middle"
|
|
||||||
></UploadImg>
|
|
||||||
)}
|
|
||||||
{tools}
|
{tools}
|
||||||
{actions.includes('clear') && (
|
{actions.includes('clear') && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
|||||||
Reference in New Issue
Block a user