upgrade deps

This commit is contained in:
les
2020-06-01 18:04:02 +02:00
parent 5cbc45a922
commit 292b1952c3
5 changed files with 541 additions and 478 deletions

View File

@@ -17,9 +17,6 @@ import { Message } from 'element-ui'
export default {
name: 'Recover',
data () {
return { new_password: '' }
},
async asyncData ({ params, $axios }) {
const code = params.code
try {
@@ -29,10 +26,13 @@ export default {
return { valid: false }
}
},
data () {
return { new_password: '' }
},
methods: {
async change_password () {
try {
const res = await this.$axios.$post('/user/recover_password', { recover_code: this.code, password: this.new_password })
await this.$axios.$post('/user/recover_password', { recover_code: this.code, password: this.new_password })
Message({
showClose: true,
type: 'success',