全项目加载动效重做和简历经历区域的时间和编辑按钮同位置显示切换

This commit is contained in:
2026-06-30 17:09:09 +08:00
parent 0aebde7bd3
commit 8773c65b28
24 changed files with 610 additions and 489 deletions
+12 -3
View File
@@ -103,12 +103,15 @@
</div>
</div>
</div>
<!-- 全屏加载遮罩 -->
<FullscreenLoading :visible="fullLoading" :text="fullLoadingText" title="Nova 正在帮您努力处理~" />
</template>
<script setup lang="ts">
import { ref, watch } from 'vue'
import { ElMessage, ElLoading } from 'element-plus'
import { ElMessage } from 'element-plus'
import { polishDiagnosisIssue } from '@/api/resume'
import FullscreenLoading from '@/components/FullscreenLoading.vue'
/** 描述段落结构 */
interface DescriptionParagraph {
@@ -142,6 +145,11 @@ const aiPolishResult = ref('')
/** AI润色中 */
const aiPolishing = ref(false)
/** 全屏加载是否显示 */
const fullLoading = ref(false)
/** 全屏加载文案 */
const fullLoadingText = ref('')
/** 生成短ID */
const generateId = (): string => Math.random().toString(36).substring(2, 8)
@@ -177,7 +185,8 @@ async function handleAiPolish() {
return
}
aiPolishing.value = true
const loading = ElLoading.service({ lock: true, text: 'AI正在润色中……', background: 'rgba(0,0,0,0.5)' })
fullLoadingText.value = 'AI正在润色中……'
fullLoading.value = true
try {
const content = text.split('\n').filter(s => s.trim())
const res = await polishDiagnosisIssue(content)
@@ -191,7 +200,7 @@ async function handleAiPolish() {
ElMessage.error('请求失败')
} finally {
aiPolishing.value = false
loading.close()
fullLoading.value = false
}
}