浏览代码

:rotating_light:

Vanessa 1 年之前
父节点
当前提交
70307c141b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/src/mobile/menu/search.ts
  2. 1 1
      app/src/protyle/render/av/select.ts

+ 1 - 1
app/src/mobile/menu/search.ts

@@ -618,7 +618,7 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
 
 
 export const popSearch = (app: App, searchConfig?: any) => {
 export const popSearch = (app: App, searchConfig?: any) => {
     const config: Config.IUILayoutTabSearchConfig = JSON.parse(JSON.stringify(window.siyuan.storage[Constants.LOCAL_SEARCHDATA]));
     const config: Config.IUILayoutTabSearchConfig = JSON.parse(JSON.stringify(window.siyuan.storage[Constants.LOCAL_SEARCHDATA]));
-    const rangeText = (getCurrentEditor()?.protyle.toolbar.range || (getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : document.createRange())).toString()
+    const rangeText = (getCurrentEditor()?.protyle.toolbar.range || (getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : document.createRange())).toString();
     if (rangeText) {
     if (rangeText) {
         config.k = rangeText;
         config.k = rangeText;
     }
     }

+ 1 - 1
app/src/protyle/render/av/select.ts

@@ -63,7 +63,7 @@ export const removeCellOption = (protyle: IProtyle, cellElements: HTMLElement[],
     const doOperations: IOperation[] = [];
     const doOperations: IOperation[] = [];
     const undoOperations: IOperation[] = [];
     const undoOperations: IOperation[] = [];
     let mSelectValue: IAVCellSelectValue[];
     let mSelectValue: IAVCellSelectValue[];
-    const avID =  blockElement.getAttribute("data-av-id")
+    const avID =  blockElement.getAttribute("data-av-id");
     cellElements.forEach((item, elementIndex) => {
     cellElements.forEach((item, elementIndex) => {
         if (!blockElement.contains(item)) {
         if (!blockElement.contains(item)) {
             const rowElement = hasClosestByClassName(item, "av__row");
             const rowElement = hasClosestByClassName(item, "av__row");