diff --git a/src/api/productCate.js b/src/api/productCate.js new file mode 100644 index 0000000..93cb68f --- /dev/null +++ b/src/api/productCate.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' +export function fetchList(parentId,params) { + return request({ + url:'/productCategory/list/'+parentId, + method:'get', + params:params + }) +} diff --git a/src/router/index.js b/src/router/index.js index ccb9676..08677f3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,7 +65,7 @@ export const constantRouterMap = [ { path: 'productCate', name: 'productCate', - component: () => import('@/views/pms/product/index'), + component: () => import('@/views/pms/productCate/index'), meta: {title: '商品分类', icon: 'product-cate'} }, { diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue index d8e0a6f..2028b4a 100644 --- a/src/views/pms/brand/index.vue +++ b/src/views/pms/brand/index.vue @@ -41,7 +41,7 @@ v-loading="listLoading" border> - + @@ -50,7 +50,7 @@ - + @@ -89,7 +89,7 @@ - +