diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index a01adbd0..9f6c7208 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -370,7 +370,9 @@ module.exports = { personnel: 'Personnel', documentLibraryDetails: 'Document Library Details', confirmCollection: 'Confirm Collection?', - cancelConfirmCollection: 'Are you sure you want to cancel the collection?' + cancelConfirmCollection: 'Are you sure you want to cancel the collection?', + confirmSubscribe: 'Confirm Subscribe ?', + cancelConfirmSubscribe: 'Are you sure you want to cancel the subscribe', }, // 文档工具 docTool: { diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index 47301b93..3aa2814a 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -370,7 +370,9 @@ module.exports = { personnel: '人员', documentLibraryDetails: '文档库详情', confirmCollection: '确定收藏?', - cancelConfirmCollection: '确定取消收藏?' + cancelConfirmCollection: '确定取消收藏?', + confirmSubscribe: '确定订阅?', + cancelConfirmSubscribe: '确定取消订阅?', }, // 文档工具 docTool: { diff --git a/src/views/documentManage/DocumentLibrary.vue b/src/views/documentManage/DocumentLibrary.vue index ce5f67d2..f3722fa4 100644 --- a/src/views/documentManage/DocumentLibrary.vue +++ b/src/views/documentManage/DocumentLibrary.vue @@ -214,7 +214,7 @@ export default { // 收藏按钮 collection (val) { this.$confirm({ - content: val.collectFlag === 0 || !val.collectFlag ? this.$t('confirmCollection') : this.$t('cancelConfirmCollection'), + content: val.collectFlag === 0 || !val.collectFlag ? this.$t('docLibrary.confirmCollection') : this.$t('docLibrary.cancelConfirmCollection'), onOk: () => { let url = '' if (val.collectFlag === 0 || !val.collectFlag) { @@ -236,7 +236,7 @@ export default { // 订阅按钮 subscribe (val) { this.$confirm({ - content: val.subscribeFlag === 0 || !val.subscribeFlag ? this.$t('confirmSubscribe') : this.$t('cancelConfirmSubscribe'), + content: val.subscribeFlag === 0 || !val.subscribeFlag ? this.$t('docLibrary.confirmSubscribe') : this.$t('docLibrary.cancelConfirmSubscribe'), onOk: () => { let url = '' if (val.subscribeFlag === 0 || !val.subscribeFlag) {