feat:fix frontend .env
This commit is contained in:
parent
90ec3e5fc5
commit
f39b1f0246
|
|
@ -1,2 +1,3 @@
|
|||
VITE_APP_DOMAIN=shenjianl.cn
|
||||
VITE_GITEA_URL=https://gitea.shenjianl.cn/shenjianZ/email-unlimit
|
||||
VITE_REPO_NAME=Gitea
|
||||
VITE_REPO_URL=https://gitea.shenjianl.cn/shenjianZ/email-unlimit
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<script setup>
|
||||
const giteaUrl = import.meta.env.VITE_GITEA_URL;
|
||||
const repoUrl = import.meta.env.VITE_REPO_URL;
|
||||
const repoName = import.meta.env.VITE_REPO_NAME;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -8,7 +9,7 @@ const giteaUrl = import.meta.env.VITE_GITEA_URL;
|
|||
<div class="logo">Email Unlimit</div>
|
||||
</router-link>
|
||||
<nav class="nav-links">
|
||||
<a :href="giteaUrl" target="_blank">Gitea</a>
|
||||
<a :href="repoUrl" target="_blank">{{ repoName }}</a>
|
||||
<router-link to="/settings" class="settings-link" title="设置">
|
||||
<img src="@/assets/setting.svg" alt="Settings" class="settings-icon" />
|
||||
</router-link>
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ const { t } = useI18n();
|
|||
const recipient = ref('');
|
||||
const messages = ref([]);
|
||||
const selectedMessage = ref(null);
|
||||
const domain = import.meta.env.VITE_APP_DOMAIN;
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
selectedMessage.value = {
|
||||
|
|
@ -112,11 +113,11 @@ if (import.meta.env.DEV) {
|
|||
}
|
||||
const loading = ref(false);
|
||||
const copyStatus = ref('idle'); // 'idle' | 'copied'
|
||||
const domain = import.meta.env.VITE_APP_DOMAIN;
|
||||
const attachments = ref([]);
|
||||
const attachmentsLoading = ref(false);
|
||||
const newMailNotification = ref(false);
|
||||
|
||||
|
||||
const renderedBody = computed(() => {
|
||||
if (selectedMessage.value && selectedMessage.value.body) {
|
||||
return marked(selectedMessage.value.body);
|
||||
|
|
|
|||
Loading…
Reference in New Issue