跳转到主要内容
必须套索之后调用该接口,否则会调用失败。建议在点击套索工具栏按钮后进入的插件界面调用该接口。
static getLassoTitles(): Promise<APIResponse<Title[]>>;
返回

示例

import { PluginNoteAPI } from 'sn-plugin-lib';

/**
 * 获取当前套索标题数据的示例。
 */
export async function exampleGetLassoTitles() {
  const res = await PluginNoteAPI.getLassoTitles();
  if (!res.success) {
    throw new Error(res.error?.message ?? 'getLassoTitles 调用失败');
  }
  return res.result;
}