Browse Source

编辑器替换

master
song 4 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 = new E( document.getElementById('editor') )
this.editor.config.height = 800 this.editor.config.height = 800
this.editor.config.uploadImgShowBase64 = false // base 64 this.editor.config.uploadImgShowBase64 = false // base 64
this.editor.config.uploadImgServer = `${BASE_API}/file/upload`// this.editor.config.uploadImgServer = `${BASE_API}/file/uploadImg`//
this.editor.config.uploadVideoServer = `${BASE_API}/file/upload` this.editor.config.uploadVideoServer = `${BASE_API}/file/uploadAudio`
this.editor.config.uploadVideoName = 'file' this.editor.config.uploadVideoName = 'file'
this.editor.config.uploadFileName = 'file' // this.editor.config.uploadFileName = 'file' //
this.editor.config.uploadImgMaxSize = 2 * 1024 * 1024 // 2M this.editor.config.uploadImgMaxSize = 2 * 1024 * 1024 // 2M

2
src/router/menus/information.js

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

8
src/views/richText/index.vue

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

Loading…
Cancel
Save