diff --git a/src/app/page.tsx b/src/app/page.tsx index e9fc20f..e3ddcdd 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,27 +3,27 @@ import { useState } from 'react'; import { runCode } from '@/actions'; // 导入 Server Action -import './styles.css'; // 引入样式 - -const root = document.getElementById('root'); -if (root) { - root.innerHTML = 'Hello, world!'; -} - -/// - -if (module.hot) { - module.hot.accept(() => { - console.log('HMR is working!'); - }); -} - -// 启用 HMR -if (module.hot) { - module.hot.accept('./styles.css', () => { - console.log('CSS updated!'); - }); -} +// import './styles.css'; // 引入样式 +// +// const root = document.getElementById('root'); +// if (root) { +// root.innerHTML = 'Hello, world!'; +// } +// +// /// +// +// if (module.hot) { +// module.hot.accept(() => { +// console.log('HMR is working!'); +// }); +// } +// +// // 启用 HMR +// if (module.hot) { +// module.hot.accept('./styles.css', () => { +// console.log('CSS updated!'); +// }); +// } const CodeRunner = () => {