diff --git a/mail-vue/package.json b/mail-vue/package.json index 33df03c..7a33420 100644 --- a/mail-vue/package.json +++ b/mail-vue/package.json @@ -22,7 +22,6 @@ "path": "^0.12.7", "pinia": "^3.0.2", "pinia-plugin-persistedstate": "^4.2.0", - "postal-mime": "^2.4.3", "screenfull": "^6.0.2", "vue": "^3.5.13", "vue-cropper": "^1.1.4", diff --git a/mail-vue/src/components/email-scroll/index.vue b/mail-vue/src/components/email-scroll/index.vue index b119ed6..64959d3 100644 --- a/mail-vue/src/components/email-scroll/index.vue +++ b/mail-vue/src/components/email-scroll/index.vue @@ -125,7 +125,7 @@ - {{ item.status === 7 ? formateReceive(item.recipient) : item.accountEmail }} + {{ item.toEmail }}
已删除 diff --git a/mail-vue/src/components/shadow-html/index.vue b/mail-vue/src/components/shadow-html/index.vue index 4b2a282..069794d 100644 --- a/mail-vue/src/components/shadow-html/index.vue +++ b/mail-vue/src/components/shadow-html/index.vue @@ -39,6 +39,8 @@ function updateContent() { const bodyStyleMatch = props.html.match(bodyStyleRegex); const bodyStyle = bodyStyleMatch ? bodyStyleMatch[1] : ''; + console.log(bodyStyle) + // 2. 移除 标签(保留内容) const cleanedHtml = props.html.replace(/<\/?body[^>]*>/gi, ''); @@ -63,19 +65,11 @@ function updateContent() { ${bodyStyle ? bodyStyle : ''} /* 注入 body 的 style */ } - img { + img:not(table img) { max-width: 100%; height: auto !important; } - *:not(p) { - margin: 0; - padding: 0; - box-sizing: border-box; - font-family: inherit; - -webkit-tap-highlight-color: transparent; - } -
${cleanedHtml} diff --git a/mail-vue/src/utils/init.js b/mail-vue/src/init/init.js similarity index 91% rename from mail-vue/src/utils/init.js rename to mail-vue/src/init/init.js index 115f714..48c962e 100644 --- a/mail-vue/src/utils/init.js +++ b/mail-vue/src/init/init.js @@ -4,7 +4,7 @@ import { useAccountStore } from "@/store/account.js"; import { loginUserInfo } from "@/request/my.js"; import { permsToRouter } from "@/utils/perm.js"; import router from "@/router"; -import { settingQuery } from "@/request/setting.js"; +import { websiteConfig } from "@/request/setting.js"; import {cvtR2Url} from "@/utils/convert.js"; export async function init() { @@ -24,7 +24,7 @@ export async function init() { return null; }); - const [s, user] = await Promise.all([settingQuery(), userPromise]); + const [s, user] = await Promise.all([websiteConfig(), userPromise]); setting = s; settingStore.settings = setting; settingStore.domainList = setting.domainList; @@ -41,7 +41,7 @@ export async function init() { } } else { - setting = await settingQuery(); + setting = await websiteConfig(); settingStore.settings = setting; settingStore.domainList = setting.domainList; document.title = setting.title; diff --git a/mail-vue/src/layout/account/index.vue b/mail-vue/src/layout/account/index.vue index d1c1182..08e9587 100644 --- a/mail-vue/src/layout/account/index.vue +++ b/mail-vue/src/layout/account/index.vue @@ -7,7 +7,7 @@
-