主要更新: - 更新所有12个产业的教务系统数据和功能 - 删除所有 node_modules 文件夹(节省3.7GB) - 删除所有 .yoyo 缓存文件夹(节省1.2GB) - 删除所有 dist 构建文件(节省55MB) 项目优化: - 项目大小从 8.1GB 减少到 3.2GB(节省60%空间) - 保留完整的源代码和配置文件 - .gitignore 已配置,防止再次提交大文件 启动脚本: - start-industry.sh/bat/ps1 脚本会自动检测并安装依赖 - 首次启动时自动运行 npm install - 支持单个或批量启动产业系统 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
986 B
JavaScript
39 lines
986 B
JavaScript
import { useState, useEffect } from "react";
|
|
import "./index.css";
|
|
|
|
const Portfolio = () => {
|
|
const [iframeSrc, setIframeSrc] = useState("");
|
|
|
|
useEffect(() => {
|
|
// 添加时间戳参数来破坏缓存
|
|
const timestamp = new Date().getTime();
|
|
setIframeSrc(`https://du9uay.github.io/personal-resume-transportation/?t=${timestamp}`);
|
|
}, []);
|
|
|
|
const handleRefresh = () => {
|
|
// 手动刷新iframe内容
|
|
const timestamp = new Date().getTime();
|
|
setIframeSrc(`https://du9uay.github.io/personal-resume-transportation/?t=${timestamp}`);
|
|
};
|
|
|
|
return (
|
|
<div className="user-portfolio-page">
|
|
{iframeSrc && (
|
|
<iframe
|
|
key={iframeSrc} // 使用key强制重新渲染iframe
|
|
src={iframeSrc}
|
|
style={{
|
|
width: "100%",
|
|
height: "100vh",
|
|
border: "none",
|
|
display: "block"
|
|
}}
|
|
title="个人简历"
|
|
/>
|
|
)}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Portfolio;
|