新增空白页中转
This commit is contained in:
@@ -16,5 +16,4 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
<style scoped></style>
|
@@ -12,6 +12,11 @@ const routes = [
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: HomeView
|
||||
},
|
||||
{
|
||||
path: '/blank',
|
||||
name: 'blank',
|
||||
component: import('../views/BlankView.vue')
|
||||
}
|
||||
]
|
||||
|
||||
|
20
src/views/BlankView.vue
Normal file
20
src/views/BlankView.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import router from '@/router';
|
||||
|
||||
export default {
|
||||
name: 'BlankView',
|
||||
created() {
|
||||
if (window.performance.navigation.type != window.performance.navigation.TYPE_RELOAD) {
|
||||
window.location.reload();
|
||||
} else {
|
||||
router.push('/home');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@@ -119,10 +119,7 @@ export default {
|
||||
adminId: array[0],
|
||||
username: res.username
|
||||
});
|
||||
//处理css样式污染问题,关闭当前窗口,重新渲染
|
||||
window.close();
|
||||
window.open('#/home', '_blank');
|
||||
//router.push("/home");
|
||||
router.push("/blank");
|
||||
});
|
||||
} else {
|
||||
if (data.msg == "4003" || data.msg == "404") {
|
||||
|
Reference in New Issue
Block a user