File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ export default {
17
17
privacyPolicy : {
18
18
title : 'Disclaimer' ,
19
19
content : privacyPolicyMD ,
20
+ quitTip : 'Auto quit app after 5 seconds' ,
20
21
confirm : "Aagree" ,
21
22
cancel : "Disagree"
22
23
} ,
23
- } ;
24
+ } ;
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ export default {
17
17
privacyPolicy : {
18
18
title : '用户协议与免责声明' ,
19
19
content : privacyPolicyMD ,
20
+ quitTip : '5秒后自动退出软件' ,
20
21
confirm : "同意并继续" ,
21
22
cancel : "不同意"
22
23
} ,
23
- } ;
24
+ } ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { MessagePlugin } from 'tdesign-vue-next';
20
20
import { computed , ref , watch } from ' vue' ;
21
21
import { MdPreview } from ' md-editor-v3' ;
22
22
23
+ import { t } from ' @/locales' ;
23
24
import { useSettingStore } from ' @/store' ;
24
25
import { setDefault } from ' @/api/setting' ;
25
26
@@ -59,7 +60,7 @@ const updateAgreementMask = async (status) => {
59
60
60
61
const cancelEvent = () => {
61
62
updateAgreementMask (false );
62
- MessagePlugin .warning ({ content: ' 5秒后自动退出软件 ' , duration: 5000 });
63
+ MessagePlugin .warning ({ content: t ( ' pages.md.privacyPolicy.quitTip ' ) , duration: 5000 });
63
64
setTimeout (() => {
64
65
window .electron .ipcRenderer .send (' quit-app' );
65
66
}, 5000 );
You can’t perform that action at this time.
0 commit comments