update preview
This commit is contained in:
parent
4c8c4f04fa
commit
31fa488905
17
README.md
17
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`
|
||||
|
||||
请注意,请先启动服务端,这样才有模拟的数据
|
||||
|
||||
.
|
||||
|
||||
## 注意事项
|
||||
|
|
BIN
introduction/images/preview-dark.png
Normal file
BIN
introduction/images/preview-dark.png
Normal file
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 |
|
@ -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
|
|
@ -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}`)
|
||||
}
|
|
@ -65,6 +65,8 @@ onMounted(async () => {
|
|||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 规范一下样式 */
|
||||
.kungalgame-comet-surround {
|
||||
padding: 0;
|
||||
flex-shrink: 0;
|
||||
|
|
Loading…
Reference in a new issue