mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
Merge remote-tracking branch 'upstream/main'
# Conflicts: # src/routes/api.js
This commit is contained in:
@@ -38,6 +38,9 @@
|
||||
</div>
|
||||
<p class="text-xs text-gray-500 dark:text-gray-400 sm:text-sm">
|
||||
近 {{ summary?.days || 30 }} 天内的费用与请求趋势
|
||||
<span v-if="summary?.actualDaysUsed && summary?.actualDaysUsed < summary?.days">
|
||||
(日均基于实际使用 {{ summary.actualDaysUsed }} 天)
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -443,7 +446,10 @@ const primaryMetrics = computed(() => [
|
||||
key: 'avgCost',
|
||||
label: '日均费用',
|
||||
value: props.summary?.avgDailyCostFormatted || formatCost(props.summary?.avgDailyCost || 0),
|
||||
subtitle: '平均每日成本',
|
||||
subtitle:
|
||||
props.summary?.actualDaysUsed && props.summary?.actualDaysUsed < props.summary?.days
|
||||
? `基于 ${props.summary.actualDaysUsed} 天实际使用`
|
||||
: '平均每日成本',
|
||||
icon: 'fa-wave-square',
|
||||
iconClass: 'text-purple-500'
|
||||
},
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import axios from 'axios'
|
||||
import { showToast } from '@/utils/toast'
|
||||
import { API_PREFIX } from '@/config/api'
|
||||
|
||||
const API_BASE = '/users'
|
||||
const API_BASE = `${API_PREFIX}/users`
|
||||
|
||||
export const useUserStore = defineStore('user', {
|
||||
state: () => ({
|
||||
|
||||
Reference in New Issue
Block a user