处理空白页面问题
This commit is contained in:
@@ -8,12 +8,12 @@ import router from '@/router';
|
||||
export default {
|
||||
name: 'BlankView',
|
||||
created() {
|
||||
window.location.reload();
|
||||
console.log(window.performance.navigation.type == window.performance.navigation.TYPE_RELOAD);
|
||||
//处理css样式污染问题
|
||||
if (window.performance.navigation.type == window.performance.navigation.TYPE_RELOAD) {
|
||||
router.push('/home');
|
||||
}
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user