feat: 配额优化

This commit is contained in:
2026-02-25 21:30:24 +08:00
parent 2e93211697
commit 79a5c1f3ed
29 changed files with 1225 additions and 489 deletions

View File

@@ -1,6 +1,14 @@
<script setup>
import { ref } from 'vue'
import { ref, onMounted } from 'vue'
import GradientButton from '@/components/GradientButton.vue'
import { usePointsConfigStore } from '@/stores/pointsConfig'
const pointsConfigStore = usePointsConfigStore()
// 加载积分配置
onMounted(() => {
pointsConfigStore.loadConfig()
})
const props = defineProps({
modelValue: {
@@ -65,6 +73,7 @@ function handleReset() {
/>
<a-button @click="handleReset">重置</a-button>
</a-space>
<p class="points-hint">每次分析将消耗积分消耗量与分析数量相关</p>
</a-form>
</section>
</template>
@@ -88,6 +97,13 @@ function handleReset() {
color: var(--color-text-secondary);
}
.points-hint {
margin-top: 12px;
font-size: 12px;
color: var(--color-text-secondary);
text-align: center;
}
:deep(.ant-slider) {
padding: 10px 0;
}