Refactor post edit.

pull/9/head
ruibaby 2019-04-27 00:14:04 +08:00
parent 803676557a
commit a8b729d615
1 changed files with 9 additions and 1 deletions

View File

@ -81,6 +81,12 @@
/> />
<div> <div>
<a-form layout="vertical"> <a-form layout="vertical">
<a-form-item v-if="categoryForm">
<category-select-tree
:categories="categories"
v-model="categoryToCreate.parentId"
/>
</a-form-item>
<a-form-item v-if="categoryForm"> <a-form-item v-if="categoryForm">
<a-input placeholder="分类名称" v-model="categoryToCreate.name"/> <a-input placeholder="分类名称" v-model="categoryToCreate.name"/>
</a-form-item> </a-form-item>
@ -171,6 +177,7 @@ import TagSelect from './components/TagSelect'
import { mavonEditor } from 'mavon-editor' import { mavonEditor } from 'mavon-editor'
import AttachmentDrawer from '../attachment/components/AttachmentDrawer' import AttachmentDrawer from '../attachment/components/AttachmentDrawer'
import AttachmentSelectDrawer from '../attachment/components/AttachmentSelectDrawer' import AttachmentSelectDrawer from '../attachment/components/AttachmentSelectDrawer'
import CategorySelectTree from './components/CategorySelectTree'
import FooterToolBar from '@/components/FooterToolbar' import FooterToolBar from '@/components/FooterToolbar'
import { mixin, mixinDevice } from '@/utils/mixin.js' import { mixin, mixinDevice } from '@/utils/mixin.js'
import { toolbars } from '@/core/const' import { toolbars } from '@/core/const'
@ -185,7 +192,8 @@ export default {
CategoryTree, CategoryTree,
FooterToolBar, FooterToolBar,
AttachmentDrawer, AttachmentDrawer,
AttachmentSelectDrawer AttachmentSelectDrawer,
CategorySelectTree
}, },
mixins: [mixin, mixinDevice], mixins: [mixin, mixinDevice],
data() { data() {