|
@@ -121,7 +121,9 @@ export default {
|
|
|
const params = { username: '', password: '' }
|
|
|
return this.Login(params).then(() => {
|
|
|
this.$router.push({ path: '/home' })
|
|
|
- window.location.reload() // 刷新页面
|
|
|
+ setTimeout(() => {
|
|
|
+ window.location.reload() // 刷新页面
|
|
|
+ }, 100)
|
|
|
}).catch(err => this.requestFailed(err))
|
|
|
})
|
|
|
},
|