feat: 配额优化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user