fix:修复cc报错

This commit is contained in:
nextfu 2022-08-05 15:22:51 +08:00
parent c36ccaf21e
commit 617a14c0f2

View File

@ -22,6 +22,7 @@ let items = ref<any[]>([]);
function refresh() {
// @ts-ignore
const cc = window['cc'];
if (!cc || !cc.profiler || !cc.profiler._stats) {
return;
}