Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
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
劳工
zeroing-editor
Commits
58a63957
Commit
58a63957
authored
May 07, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into trans-to-jpg
parents
2bfad2b0
dc218e9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
ProjectConflictResolveDialog.vue
src/views/Editor/dialogs/ProjectConflictResolveDialog.vue
+20
-12
No files found.
src/views/Editor/dialogs/ProjectConflictResolveDialog.vue
View file @
58a63957
...
...
@@ -138,13 +138,14 @@
let
remoteStr
=
remote
?
JSON
.
stringify
(
remote
)
:
''
;
let
localStr
=
local
?
JSON
.
stringify
(
local
)
:
''
;
let
compare
=
{
key
,
resolved
:
!
((
!
remote
||
!
local
)
||
remoteStr
!==
localStr
),
};
if
(
remote
)
{
compare
.
remote
=
{
name
:
remote
[
name
],
key
,
data
:
remoteStr
,
obj
:
remote
};
compare
.
remote
=
{
name
:
remote
[
name
],
data
:
remoteStr
,
obj
:
remote
};
}
if
(
local
)
{
compare
.
local
=
{
name
:
local
[
name
],
key
,
data
:
localStr
,
obj
:
local
};
compare
.
local
=
{
name
:
local
[
name
],
data
:
localStr
,
obj
:
local
};
}
compares
.
push
(
compare
);
...
...
@@ -194,17 +195,24 @@
delete
this
.
localObj
[
category
];
}
}
else
{
if
(
conflict
.
local
)
{
data
.
some
((
item
,
index
)
=>
{
if
(
item
[
categoryConfig
.
key
]
===
conflict
.
local
.
key
)
{
if
(
resultData
)
{
data
[
index
]
=
resultData
;
}
else
{
data
.
splice
(
index
,
1
);
}
return
true
;
let
matched
=
false
;
data
.
some
((
item
,
index
)
=>
{
if
(
item
[
categoryConfig
.
key
]
===
conflict
.
key
)
{
if
(
resultData
)
{
data
[
index
]
=
resultData
;
}
else
{
data
.
splice
(
index
,
1
);
}
});
matched
=
true
;
return
true
;
}
});
if
(
!
matched
)
{
if
(
resultData
)
{
data
.
push
(
resultData
);
}
else
{
}
}
}
this
.
$set
(
conflict
,
'resolved'
,
true
);
...
...
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