2024-12-5-axios入门

Axios

示例

axios({ method: 'post', url: 'http://localhost:8080/text12/workadd', data:_this.workeradd, }).then((res) => { if(res.data=='1'){ _this.isworkeradd=false; _this.$message({ message: '添加员工成功', type: 'success' }); } })

posted @ 2025-01-10 18:56  liu某人  阅读(7)  评论(0)    收藏  举报