From 6315693bcbec6683c8ad8f9fb27eabd7a6c6dc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9D=E6=A2=A6=E5=9B=AD?= Date: Mon, 19 Feb 2024 18:39:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98-=E6=88=AA=E5=9B=BE=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ImgCropper.vue | 276 ++++++++++++++++++++++++ pages/admin.vue | 28 ++- pages/admin/topic/_topic_uri.vue | 5 +- pages/admin/topic/post/_topic_id.vue | 30 ++- pages/user/settings/account.vue | 308 +++++++++++++++------------ 5 files changed, 483 insertions(+), 164 deletions(-) create mode 100644 components/ImgCropper.vue diff --git a/components/ImgCropper.vue b/components/ImgCropper.vue new file mode 100644 index 0000000..b5d7383 --- /dev/null +++ b/components/ImgCropper.vue @@ -0,0 +1,276 @@ + + + + + diff --git a/pages/admin.vue b/pages/admin.vue index 9149f82..d5bd9a0 100644 --- a/pages/admin.vue +++ b/pages/admin.vue @@ -15,18 +15,26 @@ - - + + + + + + + + + + - - + + + diff --git a/pages/admin/topic/_topic_uri.vue b/pages/admin/topic/_topic_uri.vue index 64e1356..3bcb61a 100644 --- a/pages/admin/topic/_topic_uri.vue +++ b/pages/admin/topic/_topic_uri.vue @@ -107,6 +107,7 @@ export default { }) }, handleCommand(command) { + console.log(command) let _ts = this; if ("admin-post-topic" === command) { _ts.$router.push({ @@ -142,7 +143,9 @@ export default { }).catch(() => { }); } - } + }, + + } diff --git a/pages/admin/topic/post/_topic_id.vue b/pages/admin/topic/post/_topic_id.vue index e11f6ed..7a3a1ac 100644 --- a/pages/admin/topic/post/_topic_id.vue +++ b/pages/admin/topic/post/_topic_id.vue @@ -23,17 +23,24 @@ - + + + + + + + + + + + + {{topicIconPath}} + @@ -41,6 +48,7 @@
+ diff --git a/pages/user/settings/account.vue b/pages/user/settings/account.vue index 9872f3f..6db53fd 100644 --- a/pages/user/settings/account.vue +++ b/pages/user/settings/account.vue @@ -1,157 +1,181 @@