新增空白页中转
This commit is contained in:
@@ -16,5 +16,4 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
</style>
|
|
@@ -12,6 +12,11 @@ const routes = [
|
|||||||
path: '/home',
|
path: '/home',
|
||||||
name: 'home',
|
name: 'home',
|
||||||
component: HomeView
|
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],
|
adminId: array[0],
|
||||||
username: res.username
|
username: res.username
|
||||||
});
|
});
|
||||||
//处理css样式污染问题,关闭当前窗口,重新渲染
|
router.push("/blank");
|
||||||
window.close();
|
|
||||||
window.open('#/home', '_blank');
|
|
||||||
//router.push("/home");
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (data.msg == "4003" || data.msg == "404") {
|
if (data.msg == "4003" || data.msg == "404") {
|
||||||
|
Reference in New Issue
Block a user