diff --git a/app/component/component.service.js b/app/component/component.service.js index 663fb5c..fde0183 100644 --- a/app/component/component.service.js +++ b/app/component/component.service.js @@ -46,7 +46,7 @@ class CellularService { get() { let toPath = this.pathToRegexp.compile(config.get.url); - return this.rest.get(toPath(), (__DEV__) ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined) + return this.rest.get(toPath(), (__DEV__) ? {basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com'} : undefined) .then(res => { this.data = this._transform(res.data); }) @@ -59,7 +59,7 @@ class CellularService { update(data) { let toPath = this.pathToRegexp.compile(config.put.url); let path = (undefined !== data.content.id) ? toPath({id: data.content.id}) : toPath(); - return this.rest.put(path, data.content, data.formOptions.files, (__DEV__) ? 'http://private-d8e84-sanjigeneric.apiary-mock.com' : undefined) + return this.rest.put(path, data.content, data.formOptions.files, (__DEV__) ? {basePath: 'http://private-d8e84-sanjigeneric.apiary-mock.com' } : undefined) .catch(err => { this.exception.catcher('[CellularService] Update data error.')(err); return this.$q.reject(); diff --git a/package.json b/package.json index 9d6a8d9..ed8a666 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "angular-material": "~0.11.4", "angular-material-icons": "~0.6.0", "jquery": "~2.1.4", - "sanji-core-ui": "~1.9.1", + "sanji-core-ui": "~1.9.8", "socket.io-client": "~1.3.7", "svg-morpheus": "alexk111/SVG-Morpheus#v0.1.8", "toastr": "~2.1.2"