diff --git a/pages/admin/dashboard.vue b/pages/admin/dashboard.vue index 71a331d..fc3dec2 100644 --- a/pages/admin/dashboard.vue +++ b/pages/admin/dashboard.vue @@ -71,9 +71,9 @@ 编辑标签 下架 + @click="toggleStatus(scope.row.idArticle, 1)" plain>下架 - 上架 + 上架 diff --git a/pages/admin/product/post/_product_id.vue b/pages/admin/product/post/_product_id.vue new file mode 100644 index 0000000..2427d0b --- /dev/null +++ b/pages/admin/product/post/_product_id.vue @@ -0,0 +1,439 @@ + + + + + diff --git a/pages/admin/products.vue b/pages/admin/products.vue index 9cf9fa6..f94ae64 100644 --- a/pages/admin/products.vue +++ b/pages/admin/products.vue @@ -155,7 +155,11 @@ export default { rows: _ts.products.pageSize }) }, - handleEdit(index ,row) {} + handleEdit(index ,row) { + this.$router.push({ + path: `/admin/product/post/${row.idProduct}` + }) + } } }