套索元素之后才能调用这个接口,否则会调用失败。
APIResponse<boolean>:result === true表示删除套索数据成功
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
删除套索元素数据。
static deleteLassoElements(): Promise<APIResponse<boolean>>;
APIResponse<boolean>:
result === true 表示删除套索数据成功import { PluginCommAPI } from 'sn-plugin-lib';
/**
* 删除当前套索元素数据的示例。
*/
export async function exampleDeleteLassoElements() {
const res = await PluginCommAPI.deleteLassoElements();
if (!res.success) {
throw new Error(res.error?.message ?? 'deleteLassoElements 调用失败');
}
return res.result;
}