在fetch中默认是不带cookie的,如果需要带上cookie需要设置
credentials: 'same-origin'
或者
credentials: 'include'
最好复制过去,因为手打打错一个字母迷了好久