diff --git a/src/router/index.js b/src/router/index.js index c2f2225..cc8b54b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,39 +6,32 @@ const router = createRouter({ routes: [ { path: '/login', - name: 'LoginPage', - component: () => import('../views/login/LoginPage.vue') + component: () => import('../views/1_login/LoginPage.vue') }, { path: '/', - name: 'LayoutContainer', - component: () => import('../views/layout/LayoutContainer.vue'), - redirect: '/article/channel', + component: () => import('../views/2_layout/Layout.vue'), + redirect: '/homePage', children: [ { - path: '/article/manage', - name: 'ArticleManage', - component: () => import('../views/article/ArticleManage.vue') + path: '/homePage', + component: () => import('../views/3_homePage/HomePage.vue') }, { - path: '/article/channel', - name: 'ArticleChannel', - component: () => import('../views/article/ArticleChannel.vue') + path: '/hospital', + component: () => import('../views/4_hospital/Hospital.vue') }, { - path: '/user/profile', - name: 'UserProfile', - component: () => import('../views/user/UserProfile.vue') + path: '/doctor', + component: () => import('../views/5_doctor/Doctor.vue') }, { - path: '/user/avatar', - name: 'UserAvatar', - component: () => import('../views/user/UserAvatar.vue') + path: '/article', + component: () => import('../views/6_article/Article.vue') }, { - path: '/user/password', - name: 'UserPassword', - component: () => import('../views/user/UserPassword.vue') + path: '/userInfo', + component: () => import('../views/7_userInfo/UserInfo.vue') } ] } diff --git a/src/views/1_login/LoginPage.vue b/src/views/1_login/LoginPage.vue new file mode 100644 index 0000000..25ff4c0 --- /dev/null +++ b/src/views/1_login/LoginPage.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/views/2_layout/Layout.vue b/src/views/2_layout/Layout.vue new file mode 100644 index 0000000..a92dd30 --- /dev/null +++ b/src/views/2_layout/Layout.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/views/3_homePage/HomePage.vue b/src/views/3_homePage/HomePage.vue new file mode 100644 index 0000000..e564ba2 --- /dev/null +++ b/src/views/3_homePage/HomePage.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/4_hospital/Hospital.vue b/src/views/4_hospital/Hospital.vue new file mode 100644 index 0000000..297c43d --- /dev/null +++ b/src/views/4_hospital/Hospital.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/src/views/5_doctor/Doctor.vue b/src/views/5_doctor/Doctor.vue new file mode 100644 index 0000000..cd5bf60 --- /dev/null +++ b/src/views/5_doctor/Doctor.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/views/6_article/Article.vue b/src/views/6_article/Article.vue new file mode 100644 index 0000000..24bc865 --- /dev/null +++ b/src/views/6_article/Article.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/views/7_userInfo/UserInfo.vue b/src/views/7_userInfo/UserInfo.vue new file mode 100644 index 0000000..6ff107a --- /dev/null +++ b/src/views/7_userInfo/UserInfo.vue @@ -0,0 +1,23 @@ + + + + +