Browse Source

feat(个人中心):个人中心

sufan 1 week ago
parent
commit
9d0e6b3831

+ 2 - 2
src/router/index.js

@@ -1,6 +1,6 @@
 import Vue from 'vue'
 import Router from 'vue-router'
-import MyAccount from './moudules/myAccount'
+import personalCenter from './moudules/personalCenter'
 import MyStoreEnterprise from './moudules/myStoreEnterprise'
 
 Vue.use(Router)
@@ -59,7 +59,7 @@ export const constantRoutes = [
     }]
   },
   MyStoreEnterprise,
-  MyAccount
+  personalCenter
   // 404 page must be placed at the end !!!
   // { path: '*', redirect: '/404', hidden: true }
 ]

+ 0 - 14
src/router/moudules/myAccount.js

@@ -1,14 +0,0 @@
-/* Layout */
-import Layout from '@/layout'
-
-export default {
-  path: '/myAccount',
-  component: Layout,
-  redirect: '/myAccount/index',
-  children: [{
-    path: 'myAccount',
-    name: 'MyAccount',
-    component: () => import('@/views/myAccount/index'),
-    meta: { title: '我的账户', icon: 'myAccount', breadcrumb: false }
-  }]
-}

+ 14 - 0
src/router/moudules/personalCenter.js

@@ -0,0 +1,14 @@
+/* Layout */
+import Layout from '@/layout'
+
+export default {
+  path: '/personalCenter',
+  component: Layout,
+  redirect: '/personalCenter/index',
+  children: [{
+    path: 'personalCenter',
+    name: 'personalCenter',
+    component: () => import('@/views/personalCenter/index'),
+    meta: { title: '个人中心', icon: 'myAccount', breadcrumb: false }
+  }]
+}

src/views/myAccount/components/HeadSculpture.vue → src/views/personalCenter/components/HeadSculpture.vue


src/views/myAccount/components/PersonalInformation.vue → src/views/personalCenter/components/PersonalInformation.vue


src/views/myAccount/index.vue → src/views/personalCenter/index.vue