The best we can say in studying past military conflicts: with the passage of time, the stock market has tended to rise - and the more time that has passed, the more it has risen.
Why?
2 reasons: 1) all wars eventually come to an end, and 2) the economy & earnings, even if impaired in the short run, still tended to grow in the long run despite these conflicts.