This commit is contained in:
lesion
2019-06-08 15:16:56 +02:00
parent 1dc47cb939
commit ccaf53aa24
14 changed files with 13 additions and 25 deletions

View File

@@ -27,11 +27,9 @@ export default {
methods: {
async change () {
if (!this.password) return
// this.$auth.user.password = this.password
const user_data = { id : this.$auth.user.id, password: this.password }
try {
const user = await this.$axios.$put('/user', user_data)
console.error(user)
} catch (e) {
console.log(e)
}