diff --git a/src/.vuepress/components/react/ReactDemo.vue b/src/.vuepress/components/react/ReactDemo.vue deleted file mode 100644 index 72370936..00000000 --- a/src/.vuepress/components/react/ReactDemo.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - diff --git a/src/.vuepress/hooks/useVue.js b/src/.vuepress/hooks/useVue.js new file mode 100644 index 00000000..4f21a65a --- /dev/null +++ b/src/.vuepress/hooks/useVue.js @@ -0,0 +1,6 @@ +import axios from "axios"; + +export default async function (path) { + const { data } = await axios.get(path); + return { data }; +} diff --git a/src/.vuepress/public/demo/react/ReactDemo.jsx b/src/.vuepress/public/demo/react/ReactDemo.jsx deleted file mode 100644 index fc487f87..00000000 --- a/src/.vuepress/public/demo/react/ReactDemo.jsx +++ /dev/null @@ -1,15 +0,0 @@ -import React, { useState } from 'react' - -function useCountDown() { - -} - -function App() { - const [num, setNum] = useState(0) - const increase = () => setNum(num + 1) - return -} - -export default App \ No newline at end of file diff --git a/src/web/frontend/react/demo/Demo.md b/src/web/frontend/react/demo/Demo.md deleted file mode 100644 index 4fcd6338..00000000 --- a/src/web/frontend/react/demo/Demo.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: React DEMO -icon: post -order: 1 -author: 宋玉 -date: 2024-04-15 -category: - - 分类 -tag: - - 标签 ---- - -