diff --git a/src/router/index.js b/src/router/index.js index 28ccdaa..0a2ee16 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -166,7 +166,7 @@ export const dynamicRoutes = [ path: '/product', component: Layout, hidden: true, - permissions: ['pms:product:add'], + permissions: ['pms:product:list'], children: [ { path: 'edit', diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue index e67f06d..5f259e9 100644 --- a/src/views/pms/brand/index.vue +++ b/src/views/pms/brand/index.vue @@ -28,7 +28,6 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['pms:brand:add']" >新增 @@ -54,14 +53,12 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['pms:brand:edit']" >修改 删除 diff --git a/src/views/pms/product/index.vue b/src/views/pms/product/index.vue index d58de6e..732a06b 100644 --- a/src/views/pms/product/index.vue +++ b/src/views/pms/product/index.vue @@ -55,7 +55,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['pms:product:add']" + >新增 @@ -97,14 +97,12 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['pms:product:edit']" >修改 删除 diff --git a/src/views/pms/productCategory/index.vue b/src/views/pms/productCategory/index.vue index 2019c6d..9c67951 100644 --- a/src/views/pms/productCategory/index.vue +++ b/src/views/pms/productCategory/index.vue @@ -30,7 +30,6 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['pms:productCategory:add']" >新增 @@ -61,7 +60,6 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['pms:productCategory:edit']" >修改 删除