Skip to content

nuxt3,使用此组件0.3.8版本,ignore无效,无法忽略 #129

@xinhuangi

Description

@xinhuangi

源代码如下,即使默认返回true也是无效

export const useDevtoolProtection = async () => {
try {
const { default: DisableDevtool } = await import('disable-devtool');
DisableDevtool({
url: 'https://www.baidu.com',
timeOutUrl: 'https://www.baidu.com',
interval: 100,
detectors: 'all',
disableMenu: true,
stopIntervalTime: 5000,
clearIntervalWhenDevOpenTrigger: false,
seo: true,
clearLog: true,
ignore: () => {
return true
}
});
} catch (error) {
console.error('Failed to initialize devtool protection:', error);
}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions