From 02b5447e1289c9ed6a027c236cc925a7cd1f2289 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 11 Apr 2023 23:28:59 +0800 Subject: [PATCH] =?UTF-8?q?REVIEW=20=E5=85=AC=E4=BC=97=E5=8F=B7=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=9A=84=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit fd447dc7a3c3ce4b582cd254d563ef2d2acef984) --- .env.front | 2 +- src/views/mp/autoReply/index.vue | 3 +- src/views/mp/components/WxMpSelect.vue | 5 +- .../mp/components/wx-account-select/main.vue | 6 +- src/views/mp/draft/index.vue | 3 +- src/views/mp/freePublish/index.vue | 1 + src/views/mp/material/index.vue | 5 +- src/views/mp/menu/index.vue | 3 +- src/views/mp/tag/index.vue | 85 ++++--------------- src/views/mp/user/index.vue | 1 + 10 files changed, 31 insertions(+), 83 deletions(-) diff --git a/.env.front b/.env.front index a63b6379..1629ff9f 100644 --- a/.env.front +++ b/.env.front @@ -19,7 +19,7 @@ VITE_API_URL=/admin-api VITE_BASE_PATH=/ # 项目本地运行端口号, 与.vscode/launch.json配合 -VITE_PORT=5173 +VITE_PORT=80 # 是否删除debugger VITE_DROP_DEBUGGER=false diff --git a/src/views/mp/autoReply/index.vue b/src/views/mp/autoReply/index.vue index 4877ec76..9208d1e7 100644 --- a/src/views/mp/autoReply/index.vue +++ b/src/views/mp/autoReply/index.vue @@ -3,7 +3,8 @@ - + + diff --git a/src/views/mp/components/WxMpSelect.vue b/src/views/mp/components/WxMpSelect.vue index 6dc6809b..e39bbf96 100644 --- a/src/views/mp/components/WxMpSelect.vue +++ b/src/views/mp/components/WxMpSelect.vue @@ -19,13 +19,12 @@ const emit = defineEmits<{ (e: 'change', id: number | undefined): void }>() -onMounted(async () => { +onMounted(() => { handleQuery() }) const handleQuery = async () => { - const data = await MpAccountApi.getSimpleAccountList() - accountList.value = data + accountList.value = await MpAccountApi.getSimpleAccountList() // 默认选中第一个 if (accountList.value.length > 0) { accountId.value = accountList.value[0].id diff --git a/src/views/mp/components/wx-account-select/main.vue b/src/views/mp/components/wx-account-select/main.vue index f75bc7d6..4eb99615 100644 --- a/src/views/mp/components/wx-account-select/main.vue +++ b/src/views/mp/components/wx-account-select/main.vue @@ -1,6 +1,7 @@