Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
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
ops
luna
Commits
1a435fc1
Commit
1a435fc1
authored
Jun 12, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复login_to连接多次的bug
parent
f123450b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+3
-1
index.html
src/index.html
+3
-0
No files found.
src/app/elements/asset-tree/asset-tree.component.ts
View file @
1a435fc1
...
...
@@ -43,6 +43,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
zTree
:
any
;
isShowRMenu
=
false
;
rightClickSelectNode
:
any
;
hasLoginTo
=
false
;
onCzTreeOnClick
(
event
,
treeId
,
treeNode
,
clickFlag
)
{
if
(
treeNode
.
isParent
)
{
...
...
@@ -125,9 +126,10 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
this
.
activatedRoute
.
queryParams
.
subscribe
(
params
=>
{
const
login_to
=
params
[
'login_to'
];
if
(
login_to
)
{
if
(
login_to
&&
!
this
.
hasLoginTo
)
{
this
.
Data
.
forEach
(
t
=>
{
if
(
login_to
===
t
.
id
&&
t
.
isParent
===
false
)
{
this
.
hasLoginTo
=
true
;
this
.
Connect
(
t
);
return
;
}
...
...
src/index.html
View file @
1a435fc1
...
...
@@ -16,6 +16,9 @@
<script>
window
.
onload
=
function
(
ev
)
{
var
clipboardData
=
""
;
if
(
!
document
.
hasFocus
())
{
return
}
if
(
navigator
.
clipboard
&&
navigator
.
clipboard
.
readText
)
{
navigator
.
clipboard
.
readText
().
then
(
function
textRead
(
text
)
{
...
...
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