update model selector

This commit is contained in:
AceDataCloud committed 2023-10-02 00:28:16 +08:00
1 parent aef00375d7
commit 48e6d1bfb4
3 files changed
+25 -5

No files matched your search

+15 -3
View File
@@ -1,5 +1,5 @@
<template>
<span v-if="application">
<span v-if="application && !initializing" class="info">
{{ $t('conversation.message.usedCount') }}: {{ application?.used_amount }}
{{ $t('conversation.message.remainingCount') }}: {{ application?.remaining_amount }}
</span>
@@ -8,14 +8,21 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { IApplication } from '@/operators';
import { ElSkeleton } from 'element-plus';
export default defineComponent({
name: 'ApiStatus',
components: {},
components: {
ElSkeleton
},
props: {
application: {
type: Object as () => IApplication,
required: true
},
initializing: {
type: Boolean,
required: true
}
},
data() {
@@ -26,4 +33,9 @@ export default defineComponent({
});
</script>
<style lang="scss"></style>
<style lang="scss">
.info {
font-size: 14px;
color: var(--el-color-black);
}
</style>