This commit is contained in:
Daniel 2025-03-28 21:32:09 +08:00
parent f43699b2c4
commit 1cb8520700
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 151 additions and 87 deletions

View file

@ -26,7 +26,6 @@ import {isTouchDevice} from "../../util/functions";
import {App} from "../../index";
import {refreshFileTree} from "../../dialog/processSystem";
import {hideTooltip, showTooltip} from "../../dialog/tooltip";
import * as dayjs from "dayjs";
export class Files extends Model {
public element: HTMLElement;
@ -325,8 +324,7 @@ export class Files extends Model {
});
} else if (type === "addLocal") {
fetchPost("/api/filetree/moveLocalShorthands", {
"notebook": notebookId,
"path": dayjs().format("YYYY-MM-DD HH:mm:ss")
"notebook": notebookId
});
this.element.querySelectorAll('[data-type="addLocal"]').forEach(item => {
item.remove();