处理/blank页面跳转问题
This commit is contained in:
@@ -5,17 +5,19 @@
|
||||
<script>
|
||||
import router from '@/router';
|
||||
|
||||
console.log('blank...');
|
||||
console.log(window.performance.navigation.type);
|
||||
//处理css样式污染问题
|
||||
if (window.performance.navigation.type == window.performance.navigation.TYPE_RELOAD) {
|
||||
router.push('/home');
|
||||
} else {
|
||||
router.go(0);
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'BlankView',
|
||||
created() {
|
||||
console.log('blank...');
|
||||
console.log(window.performance.navigation.type);
|
||||
//处理css样式污染问题
|
||||
if (window.performance.navigation.type == window.performance.navigation.TYPE_RELOAD) {
|
||||
router.push('/home');
|
||||
} else {
|
||||
console.log('router go ...');
|
||||
router.go(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@@ -119,7 +119,7 @@ export default {
|
||||
adminId: array[0],
|
||||
username: res.username
|
||||
});
|
||||
router.push("/blank");
|
||||
window.location.href = '/blank';
|
||||
});
|
||||
} else {
|
||||
if (data.msg == "4003" || data.msg == "404") {
|
||||
|
Reference in New Issue
Block a user