diff --git a/src/components/page/mailboxCollect.vue b/src/components/page/mailboxCollect.vue index 9aefc89..6bac0f9 100644 --- a/src/components/page/mailboxCollect.vue +++ b/src/components/page/mailboxCollect.vue @@ -171,6 +171,7 @@ import MailDetail from '../../components/page/components/email/MailDetail.vue'; export default { data() { return { + baseUrl: this.Common.baseUrl, currentFolder: 'inbox', searchKeyword: '', syncLoading: false, @@ -645,7 +646,7 @@ fetchLatestSingleMail(jEmailId, journalId) { }, buildSseUrl(jEmailId) { // 与现有 axios baseURL=/api + 相对路径 规则一致;GET + query 传参 - const base = `/api/${API.inboxSse}`; + const base = `${this.baseUrl}${API.inboxSse}`; const q = new URLSearchParams({ j_email_id: String(jEmailId) }).toString(); return `${base}?${q}`; },