Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DiscuzWeb
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Discuz
DiscuzWeb
Commits
815ad69b
Commit
815ad69b
authored
Jan 23, 2021
by
xiongyuwen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
1b8105b3
cef25ce9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
knowledgeDetail.vue
pages/knowledge/knowledgeDetail.vue
+18
-1
No files found.
pages/knowledge/knowledgeDetail.vue
View file @
815ad69b
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
:actions=
"actions || []"
:actions=
"actions || []"
@
clickAction=
"postCommand"
@
clickAction=
"postCommand"
/>
/>
<comment
:thread-id=
"threadId"
/>
<comment
v-if=
"renderComponent"
ref=
"comment"
:thread-id=
"threadId"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -80,7 +80,12 @@ import config from "@/config.js";
...
@@ -80,7 +80,12 @@ import config from "@/config.js";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
<<<<<<<
HEAD
threadId
:
"999999999"
,
threadId
:
"999999999"
,
=======
threadId
:
"28"
,
renderComponent
:
true
,
>>>>>>>
origin
/
master
actions
:
[
actions
:
[
{
{
text
:
this
.
$t
(
"topic.read"
),
text
:
this
.
$t
(
"topic.read"
),
...
@@ -170,6 +175,12 @@ export default {
...
@@ -170,6 +175,12 @@ export default {
// };
// };
},
},
methods
:
{
methods
:
{
forceRerenders
()
{
this
.
renderComponent
=
false
;
this
.
$nextTick
(()
=>
{
this
.
renderComponent
=
true
;
});
},
deleteChildren
(
arr
)
{
deleteChildren
(
arr
)
{
const
childs
=
arr
;
const
childs
=
arr
;
for
(
let
i
=
childs
.
length
;
i
--
;
i
>
0
)
{
for
(
let
i
=
childs
.
length
;
i
--
;
i
>
0
)
{
...
@@ -188,7 +199,12 @@ export default {
...
@@ -188,7 +199,12 @@ export default {
window
.
open
(
this
.
fileSrc
,
"_blank"
);
window
.
open
(
this
.
fileSrc
,
"_blank"
);
},
},
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
<<<<<<<
HEAD
self
=
this
;
self
=
this
;
=======
this
.
threadId
=
"29"
;
// 目前写死
this
.
forceRerenders
();
// 强制从新渲染函数
>>>>>>>
origin
/
master
if
(
data
.
file
)
{
if
(
data
.
file
)
{
this
.
showViewloading
=
true
;
this
.
showViewloading
=
true
;
axios
axios
...
@@ -223,6 +239,7 @@ export default {
...
@@ -223,6 +239,7 @@ export default {
console
.
log
(
this
.
threadId
,
3232
);
console
.
log
(
this
.
threadId
,
3232
);
}
}
this
.
fileMd5
=
data
.
md5
;
this
.
fileMd5
=
data
.
md5
;
console
.
log
(
this
.
threadId
,
"我是父组件"
);
});
});
}
}
},
},
...
...
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