diff options
| author | 2025-01-26 12:07:43 +0800 | |
|---|---|---|
| committer | 2025-01-26 12:07:43 +0800 | |
| commit | f682d264df77d58620991e53eefabbef436d2179 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/views/index/Notepad/changelog.ts | |
| parent | d4d7fac39528b978b742420a3cb4e91cea6f5834 (diff) | |
| download | HydroRollSite-f682d264df77d58620991e53eefabbef436d2179.tar.gz HydroRollSite-f682d264df77d58620991e53eefabbef436d2179.zip | |
重构
Diffstat (limited to 'src/views/index/Notepad/changelog.ts')
| -rw-r--r-- | src/views/index/Notepad/changelog.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/views/index/Notepad/changelog.ts b/src/views/index/Notepad/changelog.ts deleted file mode 100644 index 00ff4a4..0000000 --- a/src/views/index/Notepad/changelog.ts +++ /dev/null @@ -1,16 +0,0 @@ -import http from '@/utils/http' - -import { NotepadContent } from "@/views/index/Notepad/type"; -export const changelog = async ():Promise<NotepadContent> => -{ - const title = "Changelog" - return http.get('https://api.github.com/repos/HydroRoll-Team/HydroRoll/releases/latest') - .then(res => { - const message = "## " + res.data['tag_name'] + "\n" + res.data['body'].trimEnd(); - return new NotepadContent(title,message) - }) - .catch(err => { - console.log(err) - return new NotepadContent(title,err.toString()) - }) -} |
