diff --git a/src/api/prod.js b/src/api/prod.js index 8a7984b..07c0964 100644 --- a/src/api/prod.js +++ b/src/api/prod.js @@ -2,6 +2,7 @@ import request from '@/utils/request' import { Notification } from 'element-ui' + // export const getPersonInfo = data => { // return service({ // url: '/person_pay/getpersoninfo', @@ -26,39 +27,3 @@ export function fetchList(query) { params: query }) } - -// export function fetchArticle(id) { -// return request({ -// url: '/yp/article/detail', -// method: 'get', -// params: { -// id -// } -// }) -// } - -// export function fetchPv(pv) { -// return request({ -// url: '/yp/article/pv', -// method: 'get', -// params: { -// pv -// } -// }) -// } - -// export function createArticle(data) { -// return request({ -// url: '/yp/article/create', -// method: 'post', -// data -// }) -// } - -// export function updateArticle(data) { -// return request({ -// url: '/yp/article/update', -// method: 'post', -// data -// }) -// } diff --git a/src/router/modules/prod.js b/src/router/modules/prod.js index 5bda2a8..4ff042a 100644 --- a/src/router/modules/prod.js +++ b/src/router/modules/prod.js @@ -13,35 +13,15 @@ const prodRouter = { icon: 'star', roles: ['admin', 'assistant', 'runner', 'shoper'] // you can set roles in root nav }, - children: [ - // { - // path: 'page', - // component: () => import('@/views/permission/page'), - // name: 'ProdList', - // meta: { - // title: 'ProdList', - // roles: ['admin', 'assistant', 'runner', 'shoper'] - // } - // }, - // { - // path: 'defined', - // component: () => import('@/views/permission/directive'), - // name: 'ProdDefiend', - // meta: { - // title: 'ProdDefiend', - // roles: ['admin', 'assistant', 'shoper'] - // } - // }, - { - path: 'list', - component: () => import('@/views/prod/list'), - name: 'prodList', - meta: { - title: 'prods.prodlist', - roles: ['admin', 'assistant', 'shoper', 'runner'] - } + children: [{ + path: 'list', + component: () => import('@/views/prod/list'), + name: 'prodList', + meta: { + title: 'prods.prodlist', + roles: ['admin', 'assistant', 'shoper', 'runner'] } - ] + }] } export default prodRouter diff --git a/src/store/modules/prod.js b/src/store/modules/prod.js deleted file mode 100644 index 8b13789..0000000 --- a/src/store/modules/prod.js +++ /dev/null @@ -1 +0,0 @@ -