It's true that some TOS episodes treated computers as dangerous, yet at the same time, there were episodes that treated the ship's computer as downright oracular, with the characters asking it to solve complex problems and suggest solutions for them. Like in "Mirror, Mirror," the ease with which the mirror ship's computer calculates and confirm's Kirk's hypothesis about dimensional transfer and is somehow able to tell them how to fix it. (Although the MU's prior experience with dimensional transfer in "In a Mirror, Darkly" could retroactively explain that.) Or in "Wink of an Eye," where Spock not only asks the computer to explain the invaders' purpose, but asks it for a recommendation on how to respond. It reminds me of the way computers were often portrayed in the prose SF of the '50s. At the time, computers were less familiar, so there was an exaggerated set of beliefs about their potentials, and it went both ways -- they were feared for their power, yet also revered for it, seen as almost supernaturally wise and omniscient.