Commit b942b9af authored by 刘殿昕's avatar 刘殿昕

测试

parent fcc72532
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment