diff --git a/README.md b/README.md index 708ae699..35b9dce6 100644 --- a/README.md +++ b/README.md @@ -44,25 +44,30 @@ Tips: 网站目前正在建设中······ 但是我们在重构的时候增加了大量的内容,并且将图标由`fontawesome`改为了`iconify`,所以外观可能会不同,这里仅展示主页预览 ![](https://github.com/KUN1007/KUNGalGame-vue/blob/rebuild-color/introduction/images/preview.png) +![](https://github.com/KUN1007/KUNGalGame-vue/blob/rebuild-color/introduction/images/preview-dark.png) ### 启动方法 -#### 前端 - `git clone https://github.com/KUN1007/KUNGalGame-vue` `cd KUNGalGame-vue` -`pnpm i` - -`vite dev` - #### 服务端 `cd server ` `pnpm start` +#### 前端 + +`cd ..` + +`pnpm i` + +`vite dev` + +请注意,请先启动服务端,这样才有模拟的数据 + . ## 注意事项 diff --git a/introduction/images/preview-dark.png b/introduction/images/preview-dark.png new file mode 100644 index 00000000..d8f6283d Binary files /dev/null and b/introduction/images/preview-dark.png differ diff --git a/introduction/images/preview.png b/introduction/images/preview.png index e5622d78..7e90aaa7 100644 Binary files a/introduction/images/preview.png and b/introduction/images/preview.png differ diff --git a/src/api/index.ts b/src/api/index.ts index e3934846..e69de29b 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,11 +0,0 @@ -import axios from 'axios' - -const instance = axios.create({ - baseURL: 'https://api.example.com', // 设置请求的基础URL - timeout: 5000, // 设置请求超时时间 - headers: { - 'Content-Type': 'application/json', - }, -}) - -export default instance diff --git a/src/api/user/types/user.ts b/src/api/user/types/user.ts index edab99ae..e69de29b 100644 --- a/src/api/user/types/user.ts +++ b/src/api/user/types/user.ts @@ -1,13 +0,0 @@ -import axios from 'axios' - -export function getUser(id: string) { - return axios.get(`/users/${id}`) -} - -export function updateUser(id: string, data: string) { - return axios.put(`/users/${id}`, data) -} - -export function deleteUser(id: string) { - return axios.delete(`/users/${id}`) -} diff --git a/src/views/Home/content/article/components/ArticleContent.vue b/src/views/Home/content/article/components/ArticleContent.vue index 4cb1f890..aa472fcb 100644 --- a/src/views/Home/content/article/components/ArticleContent.vue +++ b/src/views/Home/content/article/components/ArticleContent.vue @@ -65,6 +65,8 @@ onMounted(async () => { margin-bottom: 5px; } } + +/* 规范一下样式 */ .kungalgame-comet-surround { padding: 0; flex-shrink: 0;