在create和mounted方法执行post方法是。报了’post’ undefine的错误,写在$nextTick方法里面就不会有问题了
mounted(){this.$nextTick(() => { /* code */ }) }