Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
ab110f91
authored
Aug 10, 2024
by
芋道源码
Committed by
Gitee
Aug 10, 2024
Browse files
Options
Browse Files
Download
Plain Diff
!493 fix: 思维导图管理预览会报错
Merge pull request !493 from hhhero/master
parents
b2bdcdcf
5f970864
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
src/views/ai/mindmap/manager/index.vue
+16
-2
No files found.
src/views/ai/mindmap/manager/index.vue
View file @
ab110f91
...
...
@@ -94,9 +94,16 @@
</ContentWrap>
<!-- 思维导图的预览 -->
<el-drawer
v-model=
"previewVisible"
:with-header=
"false"
size=
"800px"
>
<el-drawer
v-model=
"previewVisible"
:with-header=
"false"
size=
"800px"
@
opened=
"openedHandler"
@
close=
"closeHandler"
>
<Right
ref=
"rightRef"
v-if=
"drawerOpened"
:generatedContent=
"previewContent"
:isEnd=
"true"
:isGenerating=
"false"
...
...
@@ -167,7 +174,6 @@ const handleDelete = async (id: number) => {
}
catch
{}
}
// TODO 芋艿:预览会报错
/** 预览操作按钮 */
const
previewVisible
=
ref
(
false
)
const
previewContent
=
ref
(
''
)
...
...
@@ -176,6 +182,14 @@ const openPreview = (row: MindMapVO) => {
previewVisible
.
value
=
true
}
const
drawerOpened
=
ref
(
false
)
// drawer组件是否完全展开
const
openedHandler
=
()
=>
{
// drawer完全打开时再渲染预览组件
drawerOpened
.
value
=
true
}
const
closeHandler
=
()
=>
{
// drawer关闭时回调,更改一下drawerOpened的值为false
drawerOpened
.
value
=
false
}
/** 初始化 **/
onMounted
(
async
()
=>
{
getList
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment