diff --git a/src/components/footer/index.vue b/src/components/footer/index.vue index 4ad4340..753bc80 100644 --- a/src/components/footer/index.vue +++ b/src/components/footer/index.vue @@ -16,5 +16,4 @@ export default { } - \ No newline at end of file + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 955debb..5e773b7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -12,6 +12,11 @@ const routes = [ path: '/home', name: 'home', component: HomeView + }, + { + path: '/blank', + name: 'blank', + component: import('../views/BlankView.vue') } ] diff --git a/src/views/BlankView.vue b/src/views/BlankView.vue new file mode 100644 index 0000000..d8156bb --- /dev/null +++ b/src/views/BlankView.vue @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d3df313..32db494 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -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") {