update UI
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-09-24 16:20:48 +08:00
parent de6ac4bd85
commit 0a9d49b526
7 changed files with 211 additions and 119 deletions

View File

@@ -0,0 +1,25 @@
<template>
<n-spin :show="aiStore.loading.ai">
<div>AI 小助手友情提醒</div>
</n-spin>
</template>
<script setup lang="ts">
import { useAIStore } from "~/oj/store/ai"
const aiStore = useAIStore()
watch(
() => [
aiStore.loading.details,
aiStore.loading.weekly,
],
(newVal, oldVal) => {
if (!oldVal) return
const loaded = newVal.some((val, idx) => val === false && oldVal[idx] === true)
if (loaded) {
aiStore.fetchAIAnalysis()
}
},
{ immediate: true },
)
</script>