|
@@ -525,11 +525,18 @@ export default {
|
|
|
},
|
|
|
|
|
|
async dengluLogin(row) {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
this.$store
|
|
|
.dispatch('user/login', { username: row.userName })
|
|
|
.then(() => {
|
|
|
setTimeout(() => {
|
|
|
- window.location.href = "/"
|
|
|
+ loading.close();
|
|
|
+ window.location.href = process.env.NODE_ENV === 'staging' ? '/zfmanager' : '/'
|
|
|
}, 1000);
|
|
|
})
|
|
|
.catch(() => { })
|