This commit is contained in:
parent
fc1b98e9e1
commit
a3e3a0aeed
1 changed files with 7 additions and 1 deletions
|
@ -48,7 +48,13 @@ export const initBlockPopover = (app: App) => {
|
|||
if (tip && isLocalPath(href) && !aElement.classList.contains("b3-tooltips")) {
|
||||
let assetTip = tip;
|
||||
fetchPost("/api/asset/statAsset", {path: href}, (response) => {
|
||||
assetTip += ` ${response.data.hSize}${title ? "<br>" + title : ""}<br>${window.siyuan.languages.modifiedAt} ${response.data.hCreated}<br>${window.siyuan.languages.createdAt} ${response.data.hUpdated}`;
|
||||
if (response.code === 1) {
|
||||
if (title) {
|
||||
assetTip += "<br>" + title;
|
||||
}
|
||||
} else {
|
||||
assetTip += ` ${response.data.hSize}${title ? "<br>" + title : ""}<br>${window.siyuan.languages.modifiedAt} ${response.data.hCreated}<br>${window.siyuan.languages.createdAt} ${response.data.hUpdated}`;
|
||||
}
|
||||
showTooltip(assetTip, aElement);
|
||||
});
|
||||
tip = "";
|
||||
|
|
Loading…
Add table
Reference in a new issue