|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getSafing } from '@/api/login'
|
|
|
|
|
// import { getSafing } from '@/api/login'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
|
|
|
|
@ -39,14 +39,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleInit() {
|
|
|
|
|
getSafing().then(res => {
|
|
|
|
|
this.form = res.data || {}
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
if (err.status === 201) {
|
|
|
|
|
let redirectUrl = this.$router.currentRoute.query.redirect
|
|
|
|
|
if (redirectUrl) this.$router.replace('/' + decodeURIComponent(redirectUrl))
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// getSafing().then(res => {
|
|
|
|
|
// this.form = res.data || {}
|
|
|
|
|
// }).catch(err => {
|
|
|
|
|
// if (err.status === 201) {
|
|
|
|
|
// let redirectUrl = this.$router.currentRoute.query.redirect
|
|
|
|
|
// if (redirectUrl) this.$router.replace('/' + decodeURIComponent(redirectUrl))
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|