diff --git a/src/components/ActionsGroup/index.vue b/src/components/ActionsGroup/index.vue
index 26a7ac94f..d89389df0 100644
--- a/src/components/ActionsGroup/index.vue
+++ b/src/components/ActionsGroup/index.vue
@@ -41,7 +41,7 @@ export default {
moreActionsTitle: {
type: String,
default() {
- return this.$tco('More actions')
+ return this.$ttc('moreActions')
}
}
},
@@ -66,7 +66,7 @@ export default {
return actions
},
iMoreActionsTitle() {
- return this.moreActionsTitle || this.$tco('More actions')
+ return this.moreActionsTitle || this.$ttc('moreActions')
}
},
mounted() {
diff --git a/src/components/ActiveCard/index.vue b/src/components/ActiveCard/index.vue
index 1f7c7613d..78b37dcda 100644
--- a/src/components/ActiveCard/index.vue
+++ b/src/components/ActiveCard/index.vue
@@ -49,9 +49,9 @@ export default {
HandleChangeAction(index, row) {
this.$axios.patch(this.url, { is_active: row.is_active }
).then(res => {
- this.$message.success(this.$tco('Update success'))
+ this.$message.success(this.$ttc('updateSuccessMsg'))
}).catch(err => {
- this.$message.error(this.$tco('Update failed' + ' ' + err))
+ this.$message.error(this.$ttc('updateFailedMsg' + ' ' + err))
})
}
}
diff --git a/src/components/AutoDataForm/index.vue b/src/components/AutoDataForm/index.vue
index 2b5a49663..b3b2d306b 100644
--- a/src/components/AutoDataForm/index.vue
+++ b/src/components/AutoDataForm/index.vue
@@ -52,6 +52,8 @@ export default {
optionUrlMeta(this.url).then(data => {
this.meta = data.actions[this.method.toUpperCase()] || {}
this.generateColumns()
+ }).catch(err => {
+ console.log(err)
}).finally(() => {
this.loading = false
})
diff --git a/src/components/AutoDataTable/index.vue b/src/components/AutoDataTable/index.vue
index f356cd7cd..93a7ec3d8 100644
--- a/src/components/AutoDataTable/index.vue
+++ b/src/components/AutoDataTable/index.vue
@@ -35,7 +35,7 @@ export default {
this.meta = data.actions[this.method.toUpperCase()] || {}
this.generateColumns()
}).catch(() => {
- this.totalConfig = this.config
+ // this.totalConfig = this.config
}).finally(() => {
this.loading = false
})
@@ -50,7 +50,7 @@ export default {
case 'actions':
col = {
prop: 'id',
- label: this.$tco('Actions'),
+ label: this.$ttc('actions'),
align: 'center',
formatter: ActionsFormatter,
width: '150px',
@@ -58,7 +58,7 @@ export default {
}
break
case 'is_valid':
- col.label = this.$tco('Validity')
+ col.label = this.$ttc('validity')
col.formatter = BooleanFormatter
col.align = 'center'
col.width = '80px'
diff --git a/src/components/DataForm/index.vue b/src/components/DataForm/index.vue
index df44861af..5e2effe33 100644
--- a/src/components/DataForm/index.vue
+++ b/src/components/DataForm/index.vue
@@ -14,8 +14,8 @@
{{ button.title }}
- {{ $tco('Reset') }}
- {{ $tco('Submit') }}
+ {{ $ttc('reset') }}
+ {{ $ttc('submit') }}
diff --git a/src/components/DetailCard/index.vue b/src/components/DetailCard/index.vue
index 6e41a29c5..2e6759418 100644
--- a/src/components/DetailCard/index.vue
+++ b/src/components/DetailCard/index.vue
@@ -22,7 +22,7 @@ export default {
title: {
type: String,
default() {
- return this.$tco('basicInfoTitle')
+ return this.$ttc('basicInfo')
}
},
items: {
diff --git a/src/components/Dialog/index.vue b/src/components/Dialog/index.vue
index 380298e4e..023dc4de5 100644
--- a/src/components/Dialog/index.vue
+++ b/src/components/Dialog/index.vue
@@ -7,8 +7,8 @@
diff --git a/src/components/DialogAction/index.vue b/src/components/DialogAction/index.vue
index 0532655ca..942af61f5 100644
--- a/src/components/DialogAction/index.vue
+++ b/src/components/DialogAction/index.vue
@@ -1,6 +1,6 @@
-
diff --git a/src/layout/components/NavHeader/index.vue b/src/layout/components/NavHeader/index.vue
index 08e9831e1..edccb090b 100644
--- a/src/layout/components/NavHeader/index.vue
+++ b/src/layout/components/NavHeader/index.vue
@@ -7,18 +7,18 @@