mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-28 00:56:26 +00:00
Concat textinput to input type (#2963)
* perf: toast position * concat textinput to input
This commit is contained in:
@@ -60,11 +60,10 @@ const main = async ({
|
||||
// 使用类型断言来处理错误
|
||||
if (error instanceof Error) {
|
||||
console.error('Database query error:', error.message);
|
||||
throw new Error(error.message);
|
||||
} else {
|
||||
console.error('Database query error:', error);
|
||||
throw new Error('An unknown error occurred');
|
||||
return Promise.reject(error.message);
|
||||
}
|
||||
console.error('Database query error:', error);
|
||||
return Promise.reject('An unknown error occurred');
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user