fix(测试计划): 修复测试计划报告safari浏览器富文本不兼容页面空白问题
This commit is contained in:
parent
e2e4d9b1d8
commit
8cf6d52e05
|
@ -502,6 +502,15 @@
|
|||
});
|
||||
});
|
||||
|
||||
// 解决safar1浏览器对富文本0bject.has0wn兼容引发空白问题
|
||||
function applyPolyfills() {
|
||||
if (!Object.hasOwn) {
|
||||
Object.hasOwn = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
|
||||
}
|
||||
}
|
||||
|
||||
applyPolyfills();
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
editor.value?.destroy();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue