diff --git a/src/layout/components/Aside.vue b/src/layout/components/Aside.vue index ddcea79..202d370 100644 --- a/src/layout/components/Aside.vue +++ b/src/layout/components/Aside.vue @@ -21,15 +21,16 @@ 用户管理 + + + 个人中心 + + 用户列表 - - - 个人中心 - @@ -64,6 +65,17 @@ + + + + + + 订单列表 + + diff --git a/src/router/routes.ts b/src/router/routes.ts index 8940693..25ffd85 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -13,16 +13,16 @@ export const routes = [ path: '/manage', component: () => import("@/layout/Manage.vue"), children:[ - { - path: '/UserManagement', - name:'用户列表', - component: ()=> import("../views/User/UserManagement.vue") - }, { path: '/PersonalCenter', name:'个人中心', component: ()=> import("../views/User/PersonalCenter.vue") }, + { + path: '/UserManagement', + name:'用户列表', + component: ()=> import("../views/User/UserManagement.vue") + }, { path: '/AddProduct', name: '添加商品', @@ -39,10 +39,15 @@ export const routes = [ component: ()=> import("../views/Commodity/TypeManagement.vue") }, { - path:'/AddCoupons', - name:'添加优惠券', - component:()=>import("../views/Coupons/AddCoupons.vue") + path: '/OrderList', + name: '订单列表', + component: ()=> import("../views/Orders/OrderList.vue") } ] + }, + { + path: '/Test', + name:'测试页面', + component: () => import("../views/test.vue") } ] diff --git a/src/store/userStore.ts b/src/store/userStore.ts index ef749c2..eb4ade1 100644 --- a/src/store/userStore.ts +++ b/src/store/userStore.ts @@ -1,5 +1,4 @@ import { defineStore } from "pinia"; -import myAxios from '../api/myAxios' export const userStore = defineStore( 'user' , { //state是应用的核心数据,通常用于管理用户信息、应用设置、数据列表等。 @@ -26,7 +25,6 @@ export const userStore = defineStore( 'user' , { //更新state updateUser(payLoad : any) { this.loginUser = payLoad - console.log(payLoad,2654615165) } } }) \ No newline at end of file diff --git a/src/views/Commodity/AddProduct.vue b/src/views/Commodity/AddProduct.vue index 4b34985..f677fb5 100644 --- a/src/views/Commodity/AddProduct.vue +++ b/src/views/Commodity/AddProduct.vue @@ -1,190 +1,172 @@ \ No newline at end of file diff --git a/src/views/Commodity/MerchandiseCenter.vue b/src/views/Commodity/MerchandiseCenter.vue index e5a454b..5462ee3 100644 --- a/src/views/Commodity/MerchandiseCenter.vue +++ b/src/views/Commodity/MerchandiseCenter.vue @@ -1,7 +1,9 @@