query() {//axios post請求參入Form Data格式的參數 data參數書寫的變化 contentType請求頭設置變化 let option = this.getParams(window.location.search.substr(1)); axios({ url:url, method:'post', data: `id=${option.Id}`,//格式傳輸變化 contentType: 'application/x-www-form-urlencoded',//contentType請求頭設置 }).then(res=>{ this.listData = res.data; }).catch(error=>{ alert(error); }) },