diff --git a/web/src/services/memoService.ts b/web/src/services/memoService.ts index 8cf9b50f..dbe1a54c 100644 --- a/web/src/services/memoService.ts +++ b/web/src/services/memoService.ts @@ -1,5 +1,6 @@ import api from "../helpers/api"; import { TAG_REG } from "../helpers/consts"; +import utils from "../helpers/utils"; import appStore from "../stores/appStore"; import userService from "./userService"; @@ -40,6 +41,7 @@ class MemoService { } const { data } = await api.getMyDeletedMemos(); + data.sort((a, b) => utils.getTimeStampByDate(b.deletedAt) - utils.getTimeStampByDate(a.deletedAt)); return data; } diff --git a/web/vite.config.ts b/web/vite.config.ts index 569c38ee..eb8e69c7 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ target: "https://memos.justsven.top/", changeOrigin: true, }, - "/r": { + "/r/": { target: "https://memos.justsven.top/", changeOrigin: true, },