Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-marketing
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-marketing
Commits
3c0b34b0
提交
3c0b34b0
authored
8月 25, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复切换路由tinymce编译器不回显数据的bug
上级
68b2f99c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
17 行增加
和
4 行删除
+17
-4
index.vue
src/components/appTinymce/index.vue
+5
-0
Index.vue
src/modules/system/views/manual/Index.vue
+12
-4
没有找到文件。
src/components/appTinymce/index.vue
浏览文件 @
3c0b34b0
...
@@ -81,6 +81,11 @@ export default {
...
@@ -81,6 +81,11 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// window.setTimeout(() => {
// if (this.value) {
// window.tinymce.get(this.tinymceId).setContent(this.value || '')
// }
// }, 500)
this
.
init
()
this
.
init
()
},
},
activated
()
{
activated
()
{
...
...
src/modules/system/views/manual/Index.vue
浏览文件 @
3c0b34b0
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
<app-card>
<app-card>
<el-tabs
v-model=
"tabsActive"
type=
"card"
>
<el-tabs
v-model=
"tabsActive"
type=
"card"
>
<el-tab-pane
label=
"使用说明"
name=
"INSTRUCTIONS"
>
<el-tab-pane
label=
"使用说明"
name=
"INSTRUCTIONS"
>
<Tinymce
ref=
"editor"
v-model=
"intro_content"
:height=
"600"
/>
<Tinymce
v-if=
"tinymceFlag"
ref=
"editor"
v-model=
"intro_content"
:height=
"600"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"常见问题"
name=
"COMMON_PROBLEM"
>
<el-tab-pane
label=
"常见问题"
name=
"COMMON_PROBLEM"
>
<Tinymce
ref=
"editor"
v-model=
"ques_content"
:height=
"600"
/>
<Tinymce
v-if=
"tinymceFlag"
ref=
"editor"
v-model=
"ques_content"
:height=
"600"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<el-button
type=
"primary"
@
click=
"fetchSubmitManual"
size=
"mini"
style=
"margin-top:20px;"
:disabled=
"btnDisabled"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"fetchSubmitManual"
size=
"mini"
style=
"margin-top:20px;"
:disabled=
"btnDisabled"
>
保存
</el-button>
...
@@ -22,11 +22,19 @@ export default {
...
@@ -22,11 +22,19 @@ export default {
tabsActive
:
'INSTRUCTIONS'
,
tabsActive
:
'INSTRUCTIONS'
,
intro_content
:
''
,
intro_content
:
''
,
ques_content
:
''
,
ques_content
:
''
,
btnDisabled
:
false
btnDisabled
:
false
,
tinymceFlag
:
false
}
}
},
},
crea
ted
()
{
moun
ted
()
{
this
.
fetchGetManual
()
this
.
fetchGetManual
()
this
.
tinymceFlag
=
false
this
.
$nextTick
(()
=>
{
this
.
tinymceFlag
=
true
})
},
destroyed
()
{
this
.
$destroy
(
'Tinymce'
)
},
},
methods
:
{
methods
:
{
fetchSubmitManual
()
{
fetchSubmitManual
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论