Former-commit-id: c1dadd17596c6d8c9f5484fd3b176f871248b8da
Former-commit-id: 50f6914b285bceeb06af42cbd9cdc408e1625b63
1.0
wanggang 4 years ago
parent 865eb6aae4
commit fe9cb54c93

@ -122,7 +122,7 @@
if (response.status === 200) {
store.commit('login', response.data);
setTimeout(function () {
router.push({ path: '/components/views/shared/redirect.html', query: { url: router.currentRoute.fullPath } });
router.push({ path: '/components/views/shared/redirect.html', query: { url: router.currentRoute.fullPath,message:'正在切换当前机构' } });
}, 1000);
}
else if (response.status === 400) {

@ -1,19 +1,18 @@
<template>
<layout><div>loading</div></layout>
<div class="content-wrapper" style="box-sizing:border-box;height: calc(100vh);padding:5em 1em;margin:0;background:#333;text-align:center;font-size:14px;color:#ccc;">
<p>{{message}}</p>
</div>
</template>
<script>
export default {
computed: {
message: function () {
return this.$route.query.message || 'loading';
}
},
mounted: function () {
var url = this.$route.query.url || '/';
this.$router.push(url);
},
methods: {
//beforeRouteEnter(to, from, next) {
// console.log(to);
// console.log(from);
// console.log(next);
// router.push('/');
//}
}
}
</script>
Loading…
Cancel
Save