From b942b9af8395cf01dbcac8825635b32d5369c85f Mon Sep 17 00:00:00 2001 From: liudianxin Date: Wed, 5 Aug 2020 13:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/fwzc_fwcs.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 5d3eb3e..c7f8fe1 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) { -- 2.26.0