bug
This commit is contained in:
@@ -65,9 +65,13 @@
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
this.btnLoading = true
|
||||
const devVersion = require('../../manifest.development.json').version
|
||||
const prodVersion = require('../../manifest.production.json').version
|
||||
const version = process.env.NODE_ENV === 'production' ? prodVersion : devVersion
|
||||
this.$http.post(`/api/mobile/token`, this.form, {
|
||||
params: {
|
||||
...this.form
|
||||
...this.form,
|
||||
version
|
||||
},
|
||||
headers: {
|
||||
Authorization: 'Basic YXBwOmFwcA=='
|
||||
|
||||
Reference in New Issue
Block a user