Skip to content

Commit e8af333

Browse files
committed
fix(chart):修复初始化时产生的未定义错误
1 parent dbab480 commit e8af333

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import EventHandler from "../../../BootstrapBlazor/modules/event-handler.js"
66

77
Chart.register(ChartDataLabels);
88

9+
if (window.BootstrapBlazor === void 0) {
10+
window.BootstrapBlazor = {};
11+
}
12+
913
if (window.BootstrapBlazor.Chart === void 0) {
1014
const elementMap = new Map();
1115
window.BootstrapBlazor.Chart = new class {

0 commit comments

Comments
 (0)