update preview

This commit is contained in:
KUN1007 2023-06-09 14:02:59 +08:00
parent 4c8c4f04fa
commit 31fa488905
6 changed files with 13 additions and 30 deletions

View file

@ -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`
请注意,请先启动服务端,这样才有模拟的数据
.
## 注意事项

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 KiB

After

Width:  |  Height:  |  Size: 925 KiB

View file

@ -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

View file

@ -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}`)
}

View file

@ -65,6 +65,8 @@ onMounted(async () => {
margin-bottom: 5px;
}
}
/* 规范一下样式 */
.kungalgame-comet-surround {
padding: 0;
flex-shrink: 0;