Skip to content

Commit 80dd8d0

Browse files
committed
refactor: simplify package item filtering in CreateAgent component
- Updated the filtering logic for packageItems in CreateAgent.vue to remove unnecessary conditions, enhancing code clarity and maintainability.
1 parent 8dc3994 commit 80dd8d0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/dfs/src/views/instance/CreateAgent.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,7 @@ export default {
536536
const specificationLabel = this.specificationItems.find(t => t.value === this.specification)?.name
537537
this.currentSpecName = specificationLabel
538538
this.packageItems = this.allPackages
539-
.filter(
540-
it =>
541-
this.specification === it.specification &&
542-
(it.chargeProvider === 'FreeTier' || !(it.type === 'one_time' && it.periodUnit === 'year'))
543-
)
539+
.filter(it => this.specification === it.specification)
544540
.map(t => {
545541
return Object.assign(t, {
546542
desc: i18n.t('dfs_instance_create_bencidinggouzhi', {

0 commit comments

Comments
 (0)