Fixed stage settings payload structure
This commit is contained in:
parent
104d7c0345
commit
f17d1e71f9
1 changed files with 5 additions and 1 deletions
|
|
@ -63,7 +63,9 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
applyConfigRequest: function() {
|
applyConfigRequest: function() {
|
||||||
var payload = {}
|
var payload = {
|
||||||
|
stage_settings: {}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.microscopeName != this.$store.state.apiConfig.name) {
|
if (this.microscopeName != this.$store.state.apiConfig.name) {
|
||||||
payload.name = this.microscopeName
|
payload.name = this.microscopeName
|
||||||
|
|
@ -73,6 +75,8 @@ export default {
|
||||||
payload.stage_settings.backlash = this.stageBacklash
|
payload.stage_settings.backlash = this.stageBacklash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(payload)
|
||||||
|
|
||||||
// Send request to update config
|
// Send request to update config
|
||||||
axios.post(this.configApiUri, payload)
|
axios.post(this.configApiUri, payload)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue