在create和mounted方法執行post方法是。報了’post’ undefine的錯誤,寫在$nextTick方法裏面就不會有問題了
mounted(){this.$nextTick(() => { /* code */ }) }