优化SocialLinks组件删除调试日志
This commit is contained in:
parent
8f83b98a3f
commit
4ecdb86cfc
@ -39,10 +39,8 @@ export default function SocialLinks() {
|
||||
const res = await axios.get("/api/get-component-data", {
|
||||
params: { component_name: "SocialLinks" },
|
||||
});
|
||||
console.log('SocialLinks Data:', res.data);
|
||||
setData(res.data.data);
|
||||
} catch (err) {
|
||||
console.error('SocialLinks Error:', err);
|
||||
setError("获取SocialLinks数据失败");
|
||||
} finally {
|
||||
setLoading(false);
|
||||
@ -63,7 +61,6 @@ export default function SocialLinks() {
|
||||
return (
|
||||
<nav className="nav social !mb-3">
|
||||
{data.items.map((elm, i) => {
|
||||
console.log('Social Item:', elm);
|
||||
return (
|
||||
<div key={i} className="relative inline-block">
|
||||
<a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user