fix(测试计划): 修复测试计划报告safari浏览器富文本不兼容页面空白问题

This commit is contained in:
xinxin.wu 2024-09-23 10:23:11 +08:00 committed by Craftsman
parent e2e4d9b1d8
commit 8cf6d52e05
1 changed files with 9 additions and 0 deletions

View File

@ -502,6 +502,15 @@
});
});
// safar10bject.has0wn
function applyPolyfills() {
if (!Object.hasOwn) {
Object.hasOwn = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
}
}
applyPolyfills();
onBeforeUnmount(() => {
editor.value?.destroy();
});