haflow.main.js重构