This commit is contained in:
吴红兵
2026-03-07 01:34:48 +08:00
parent adc511cfdc
commit 94c3473958
1211 changed files with 599405 additions and 322105 deletions

View File

@@ -31,15 +31,15 @@ const SECURITY_WARNING_TEMPLATE = `
* http://localhost/?ddtk=pig#/flow/task/started
*/
export function initAntiDebug(): void {
if (import.meta.env.VITE_ENABLE_ANTI_DEBUG !== 'true') {
return;
}
if (import.meta.env.VITE_ENABLE_ANTI_DEBUG !== 'true') {
return;
}
const debugKey = import.meta.env.VITE_ANTI_DEBUG_KEY || 'pig';
const debugKey = import.meta.env.VITE_ANTI_DEBUG_KEY || 'pig';
DisableDevtool({
md5: DisableDevtool.md5(debugKey),
disableMenu: false,
rewriteHTML: SECURITY_WARNING_TEMPLATE,
});
DisableDevtool({
md5: DisableDevtool.md5(debugKey),
disableMenu: false,
rewriteHTML: SECURITY_WARNING_TEMPLATE,
});
}