处理/blank页面跳转问题

This commit is contained in:
liaozetao
2023-10-17 16:56:55 +08:00
parent ca99af9d9c
commit 599fa22de8
2 changed files with 12 additions and 10 deletions

View File

@@ -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>

View File

@@ -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") {