forked from github/dataease
Merge pull request #2975 from dataease/pr@dev@fix_login_foot_setting
fix(系统管理-外观配置): 登录页脚富文本编辑器删除非必要功能
This commit is contained in:
commit
25e46f41f8
@ -20,6 +20,14 @@ export default {
|
||||
remark: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
showTable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showMedia: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@ -60,6 +68,17 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
if(!this.showTable) {
|
||||
this.init.plugins = this.init.plugins.replace(' table', '')
|
||||
|
||||
}
|
||||
if(!this.showMedia) {
|
||||
this.init.plugins = this.init.plugins.replace(' media', '')
|
||||
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.content = this.remark
|
||||
tinymce.init({})
|
||||
|
Loading…
Reference in New Issue
Block a user