标签:col 发送 move content api OLE dom pos ica
import axios from "axios";
mounted() { axios .get( "/api/queryusertree?domId=" + this.domId + "&ownerId=" + this.ownerId, { headers: { Validate: "123456" } } ) .then(response => { let object = response.data.data; let head = object; this.data = object.childList; console.log(this.data); }) .catch(error => { console.log(error); alert("网络错误,不能访问"); }); },
remove(userId) { let data = { domId: this.domId, ownerId: this.ownerId, userId: userId };//post传递对象到后台 axios .post("/api/removedomuser", data, { headers: { //头部信息 "Content-Type": "application/json;charset=utf-8", Validate: "123456" } }) .then(response => { let resultUtils = response.data; console.log(resultUtils); }) .catch(error => { console.log(error); alert("网络错误,不能访问"); }); },
标签:col 发送 move content api OLE dom pos ica
原文地址:https://www.cnblogs.com/yanl55555/p/11963743.html