最基本的,switch case 需要break,不然case 会顺延执行下一个case
因为有好几个case ,你没有写break;导致都执行到default啦
供参考:https://baike.baidu.com/item/switch/18601752?fr=aladdin