diff --git a/src/assets/less/app.less b/src/assets/less/app.less index 8866cc8..a08cc8b 100644 --- a/src/assets/less/app.less +++ b/src/assets/less/app.less @@ -77,10 +77,12 @@ section { position: relative; margin: 0 -20px; width: 375px; + min-height: 100vh; padding: 20px; font-size: 14px; box-sizing: border-box; outline: none; + word-wrap: break-word; } .preview table { diff --git a/src/components/CodemirrorEditor/PostSlider.vue b/src/components/CodemirrorEditor/PostSlider.vue index d76d976..761aa45 100644 --- a/src/components/CodemirrorEditor/PostSlider.vue +++ b/src/components/CodemirrorEditor/PostSlider.vue @@ -40,7 +40,7 @@ function renamePost() { } store.renamePost(editTarget.value, renamePostInputVal.value) isOpenEditDialog.value = false - toast.success(`文章更名成功`) + toast.success(`文章重命名成功`) } const isOpenDelPostConfirmDialog = ref(false) @@ -105,9 +105,9 @@ function delPost() { - 更名 + 重命名 - + 删除 diff --git a/src/stores/index.ts b/src/stores/index.ts index c3673cb..c4fb0e5 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -73,7 +73,7 @@ export const useStore = defineStore(`store`, () => { const delPost = (index: number) => { posts.value.splice(index, 1) - currentPostIndex.value = 0 + currentPostIndex.value = posts.value.length - 1 } watch(currentPostIndex, () => {