如何判断页面是否在主题组件/小部件中加载?

You may try queueRerender() instead of scheduleRerender()