dsdq
This commit is contained in:
parent
62d2ead615
commit
b7c7253732
@ -21,7 +21,7 @@
|
|||||||
字数: {{ characterCount }}
|
字数: {{ characterCount }}
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" @click="handleSaveArticle(1)">保存</el-button>
|
<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>
|
<el-button type="primary" @click="handlePreviewArticle">预览</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -142,6 +142,13 @@ editorConfig.MENU_CONF['uploadVideo'] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const handleSaveArticle = (type) => {
|
||||||
|
console.log(type)
|
||||||
|
|
||||||
|
router.back()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 组件销毁时,也及时销毁编辑器
|
// 组件销毁时,也及时销毁编辑器
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
const editor = editorRef.value
|
const editor = editorRef.value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user