Hydrogen-based integrated energy system holds promise for leveraging the low carbon advantage of hydrogen, but inefficiency of electrolysis hydrogen production leads to significant exergy loss within its operation. Addressing this, this paper focuses on the energy-saving and economic operation of the hydrogen-based integrated energy system, proposes a novel green dispatch approach using loss cost as the objective function and establishes a refined loss cost accounting model based on exergy analysis theory. Firstly, derived from the analogy of exergy loss, the concept and accounting framework of system loss cost are proposed. Secondly, employing exergy analysis and consistent unit exergy cost principle, equipment operation loss cost is calculated through energy, exergy flows analysis and cost allocation. Thirdly, utilizing the total of equipment operation loss cost, wind curtailment penalty cost, and transmission line loss cost as the objective function, a green dispatch model is formulated to minimize overall loss cost while ensuring energy balance and other constraints. Finally, simulations analysis are conducted. The results show that compared to economic dispatch, minimized exergy loss dispatch and multi-objective dispatch methods, proposed approach increases exergy efficiency by 0.54 %, reduces cost by 6.13 % and increases the scale of hydrogen utilization by 3.45 %, respectively.