Browse Source

编辑器替换

master
song 3 years ago
parent
commit
da09abeb11
  1. 4
      src/components/Detail/editor.vue
  2. 2
      src/router/menus/information.js
  3. 8
      src/views/richText/index.vue

4
src/components/Detail/editor.vue

@ -35,8 +35,8 @@
this.editor = new E( document.getElementById('editor') )
this.editor.config.height = 800
this.editor.config.uploadImgShowBase64 = false // base 64
this.editor.config.uploadImgServer = `${BASE_API}/file/upload`//
this.editor.config.uploadVideoServer = `${BASE_API}/file/upload`
this.editor.config.uploadImgServer = `${BASE_API}/file/uploadImg`//
this.editor.config.uploadVideoServer = `${BASE_API}/file/uploadAudio`
this.editor.config.uploadVideoName = 'file'
this.editor.config.uploadFileName = 'file' //
this.editor.config.uploadImgMaxSize = 2 * 1024 * 1024 // 2M

2
src/router/menus/information.js

@ -8,7 +8,7 @@ const commodityManagement = {
children: [
{
path: '/information1',
// component: () => import('@/views/richText/index'),
component: () => import('@/views/richText/index'),
code: '0601',
// name: '基本信息',
meta: {title: '基本信息', noCache: true, affix: false},

8
src/views/richText/index.vue

@ -4,7 +4,7 @@
<el-tab-pane label="详情页管理" name="DETAIL">
<detail :showPage="showPage" ref="detail" />
</el-tab-pane>
<el-tab-pane label="轮播图管理" name="IMAGE">
<el-tab-pane label="轮播图管理" name="IMAGE" v-if="showBanner">
<banner :showPage="showPage" ref="banner" />
</el-tab-pane>
</el-tabs>
@ -24,11 +24,15 @@
data() {
return {
activeName: 'DETAIL',
showPage: ''
showPage: '',
showBanner: true
}
},
created() {
this.showPage = localStorage.getItem('code')
if(this.showPage.length == 6){
this.showBanner = false
}
},
mounted() {
this.$nextTick(() => {

Loading…
Cancel
Save