我在调用dialog api时遇到错误,请建议
未捕获的TypeError:无法读取null的属性'registerForEvent' 在OSF.DDA.WAC.Delegate.registerEventAsync(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:108641) 在e。(匿名函数)(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:70644) at Object.value [as addHandlerAsync](https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:77346) 在r.initializeAndChangeOnce(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:210348) at OSF.InitializationHelper.prepareRightBeforeWebExtensionInitialize(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:241143) 在https://appsforoffice.microsoft.com/lib/1/hosted/Office.js:12:12892 在d(https://appsforoffice.microsoft.com/lib/1/hosted/Office.js:12:3420)
Uncaught(在promise中)TypeError:无法读取null的属性“invoke” at Object.OSF.DDA.WAC.Delegate.executeAsync(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:107319) 在e。(匿名函数)(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:69419) at Object.n。(匿名函数).OSF.OUtil.defineEnumerableProperty.value [as executeRichApiRequestAsync](https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:77000) 在https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:287255 在Promise() at t.executeAsync(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:287195) at i.syncPrivate(https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:255809) 在https://appsforoffice.microsoft.com/lib/1/hosted/word-web-16.00.js:21:255150 在
答案 0 :(得分:0)
此控制台错误将影响对话框api功能。并且该错误已在Prod环境中得到解决。您可以清除缓存并再次尝试检查它是否仍然存在。谢谢!