This commit is contained in:
liaozetao
2023-10-17 16:49:14 +08:00
parent 28606a97ec
commit 355b68f83f

View File

@@ -7,15 +7,20 @@ import router from '@/router';
export default {
name: 'BlankView',
created() {
console.log('created...');
console.log(window.performance.navigation.type);
//处理css样式污染问题
if (window.performance.navigation.type == window.performance.navigation.TYPE_RELOAD) {
router.push('/home');
return;
setup() {
function reload() {
console.log('created...');
console.log(window.performance.navigation.type);
//处理css样式污染问题
if (window.performance.navigation.type == window.performance.navigation.TYPE_RELOAD) {
router.push('/home');
return;
}
router.go(0);
}
router.go(0);
return {
reload
};
}
}
</script>