mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-24 22:40:11 +08:00
fix: 修改组件注册会报错的问题
This commit is contained in:
parent
2e688ad686
commit
82394dd7a3
@ -8,7 +8,7 @@ export const useComInstall = (localStorageInfo: ChartEditStorageType) => {
|
||||
|
||||
// 注册组件(一开始无法获取window['$vue'])
|
||||
const intervalTiming = setInterval(() => {
|
||||
if (window['$vue'].component) {
|
||||
if (window['$vue']?.component) {
|
||||
clearInterval(intervalTiming)
|
||||
localStorageInfo.componentList.forEach(async (e: CreateComponentType) => {
|
||||
if (!window['$vue'].component(e.chartConfig.chartKey)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user