| | |
| | | }, |
| | | data: {rgvNo: index}, |
| | | method: 'POST', |
| | | xhrFields: { |
| | | withCredentials: true // 重要:允许携带凭证 |
| | | }, |
| | | success: function (res) { |
| | | that.taskAllData = res.data |
| | | } |
| | |
| | | 'token': localStorage.getItem('token') || '' // 确保token不为null |
| | | }, |
| | | method: 'GET', |
| | | xhrFields: { |
| | | withCredentials: true // 关键:允许携带凭证 |
| | | }, |
| | | success: function (res) { |
| | | // console.log("✅ 请求成功,响应数据:", res); |
| | | if (res.code === 200) { |
| | |
| | | }, |
| | | data: this.formParam, |
| | | method: 'POST', |
| | | xhrFields: { |
| | | withCredentials: true // 重要:允许携带凭证 |
| | | }, |
| | | success: function (res) { |
| | | if (res.code == 200) { |
| | | that.$message({ |