修复main的bug, 增加componentMain属性

Signed-off-by: TZ <atian25@qq.com>