From 0faa495d95e82f3be14d59925e3bf6bbf8053a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9D=E6=A2=A6=E5=9B=AD?= Date: Tue, 27 Feb 2024 16:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8A=E6=88=90=E5=93=81-=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/admin/product/post/_product_id.vue | 3 +- pages/admin/products.vue | 236 +++++++++++++++-------- 2 files changed, 157 insertions(+), 82 deletions(-) diff --git a/pages/admin/product/post/_product_id.vue b/pages/admin/product/post/_product_id.vue index 2427d0b..faaf91a 100644 --- a/pages/admin/product/post/_product_id.vue +++ b/pages/admin/product/post/_product_id.vue @@ -62,7 +62,7 @@ import {mapState} from 'vuex'; import apiConfig from '~/config/api.config'; export default { - name: "PostArticle", + name: "PostProducts", middleware: 'auth', validate({params, store}) { if (typeof params.product_id === 'undefined') { @@ -379,6 +379,7 @@ export default { window.onbeforeunload = null; }, async mounted() { + console.log('??') if (!this.hasPermissions) { return } diff --git a/pages/admin/products.vue b/pages/admin/products.vue index f94ae64..9286384 100644 --- a/pages/admin/products.vue +++ b/pages/admin/products.vue @@ -1,83 +1,125 @@