style: 调整提示信息位置

This commit is contained in:
tbphp
2025-07-15 22:31:27 +08:00
parent d3f0861de4
commit 96c8943dc1
5 changed files with 20 additions and 12 deletions

View File

@@ -176,7 +176,11 @@ async function testKey(_key: KeyRow) {
if (curValid.is_valid) {
window.$message.success("密钥测试成功");
} else {
window.$message.error(curValid.error || "密钥测试失败: 无效的API密钥");
window.$message.error(curValid.error || "密钥测试失败: 无效的API密钥", {
keepAliveOnHover: true,
duration: 5000,
closable: true,
});
}
} catch (_error) {
console.error("测试失败");