diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 5d3eb3ec763b7dca164387e3a97a3ee6b689b26c..c7f8fe177f4672270649e3d30f27377ae3844401 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -940,7 +940,7 @@ export default { let self = this; //添加服务到portal let url = - "https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" + + "https://apaasgis.wodcloud.com/portal/sharing/rest/content/users/" + self.portalUser.username + "/addItem"; let data = { @@ -953,7 +953,7 @@ export default { token: self.portalUser.token, }; self.$http - .post(url, data, { emulateJSON: true }) + .post(url, data) .then((response) => { if (response.data.success == 1) { self.shareItem(response.data.id); @@ -976,7 +976,7 @@ export default { console.log(`共享portal${itemid}`); let self = this; let searchUrl = - "https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" + + "https://apaasgis.wodcloud.com/portal/sharing/rest/content/users/" + self.portalUser.username + "/shareItems"; let data = { @@ -987,7 +987,7 @@ export default { groups: null, }; self.$http - .post(searchUrl, data, { emulateJSON: true }) + .post(searchUrl, data) .then((response) => { console.log(response); }) @@ -1000,7 +1000,7 @@ export default { let self = this; console.log(self.portalUser); let searchUrl = - "https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" + + "https://apaasgis.wodcloud.com/portal/sharing/rest/content/users/" + self.portalUser.username + "/items/" + itemid; @@ -1009,7 +1009,7 @@ export default { f: "json", }; self.$http - .post(searchUrl, data, { emulateJSON: true }) + .post(searchUrl, data) .then((response) => { console.log(response); if (response.data.success == 1) {