This commit is contained in:
@zuopngfei 2025-05-19 18:20:05 +08:00
parent 62d2ead615
commit b7c7253732

View File

@ -21,7 +21,7 @@
字数: {{ characterCount }}
</div>
<el-button type="primary" @click="handleSaveArticle(1)">保存</el-button>
<el-button type="primary" @click="handleSaveArticle(2)">存草稿</el-button>
<!-- <el-button type="primary" @click="handleSaveArticle(2)">存草稿</el-button> -->
<el-button type="primary" @click="handlePreviewArticle">预览</el-button>
</div>
</div>
@ -142,6 +142,13 @@ editorConfig.MENU_CONF['uploadVideo'] = {
}
const handleSaveArticle = (type) => {
console.log(type)
router.back()
}
//
onBeforeUnmount(() => {
const editor = editorRef.value