Skip to content

Commit

Permalink
v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
zack9433 committed Dec 8, 2015
2 parents 85fcad4 + 8f0c7dd commit 3da999a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/component/component.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions dist/sanji-cellular-ui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sanji-cellular-ui.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sanji-cellular-ui",
"author": "Zack Yang <zack9433@gmail.com> (https://github.com/zack9433)",
"description": "Sanji cellualr UI",
"version": "1.0.6",
"version": "1.0.7",
"main": "index",
"config": {
"ghooks": {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 3da999a

Please sign in to comment.