diff --git a/src/language/en.ts b/src/language/en.ts index fa03d144..f39994f4 100644 --- a/src/language/en.ts +++ b/src/language/en.ts @@ -211,7 +211,11 @@ export default { publish: 'Confirm to publish?', publishSuccess: 'Publish Successfully', publishCancel: 'Cancel Publish', + rewrite: 'Confirm to Rewrite?', + rewriteSuccess: 'Rewrite Successfully', + rewriteCancel: 'Cancel Rewrite', draft: 'The draft has been saved successfully!', + leave: 'Confirm leaving the page? Your changes will not be saved.', }, login: { success: 'Login Successfully! Welcome to KUN Visual Novel ~ ', diff --git a/src/language/zh.ts b/src/language/zh.ts index 269fbcc0..cf37f86b 100644 --- a/src/language/zh.ts +++ b/src/language/zh.ts @@ -214,6 +214,7 @@ export default { rewriteSuccess: 'Rewrite 成功', rewriteCancel: '取消 Rewrite', draft: '草稿已经保存成功!', + leave: '确认离开界面吗?您的更改将不会保存', }, login: { login: '登陆成功!欢迎来到 鲲 Galgame ~ ', diff --git a/src/views/edit/Edit.vue b/src/views/edit/Edit.vue index 5974ff84..ba7d8ed7 100644 --- a/src/views/edit/Edit.vue +++ b/src/views/edit/Edit.vue @@ -1,20 +1,50 @@