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/.vscode/launch.json b/.vscode/launch.json index e4093b3a..f43edc03 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "type": "msedge", "request": "launch", "name": "Launch Edge against localhost", - "url": "http://localhost:5173", + "url": "http://localhost", "webRoot": "${workspaceFolder}/src", "sourceMaps": true } 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 @@