mirror of
https://github.com/usememos/memos.git
synced 2025-01-28 08:05:03 +08:00
fix: memo trash order by deletedAt
This commit is contained in:
parent
494c4f4578
commit
1710cc526f
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ export default defineConfig({
|
|||
target: "https://memos.justsven.top/",
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/r": {
|
||||
"/r/": {
|
||||
target: "https://memos.justsven.top/",
|
||||
changeOrigin: true,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue