This commit is contained in:
yanran200730
2023-08-07 22:28:21 +08:00
parent 51b2b8c97f
commit 19f9f70f73
3 changed files with 22 additions and 12 deletions

View File

@@ -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=='