Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
robot-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
汪晓凯
robot-monitor
Commits
03860ab5
Commit
03860ab5
authored
Sep 27, 2018
by
汪晓凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浅拷贝导致的数据更新问题
parent
7352e33b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
RobotDetails.vue
src/views/RobotDetails.vue
+3
-2
No files found.
src/views/RobotDetails.vue
View file @
03860ab5
...
@@ -718,7 +718,7 @@
...
@@ -718,7 +718,7 @@
};
};
axios
.
post
(
ApiConfig
.
GetRobotConfig
,
params
).
then
(
res
=>
{
axios
.
post
(
ApiConfig
.
GetRobotConfig
,
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
this
.
updateRobotConfig
=
this
.
robotConfig
=
res
.
data
.
data
;
this
.
robotConfig
=
res
.
data
.
data
;
}
}
})
})
},
},
...
@@ -760,6 +760,7 @@
...
@@ -760,6 +760,7 @@
this
.
amount_num
=
''
;
this
.
amount_num
=
''
;
this
.
recharge_list_value
=
''
;
this
.
recharge_list_value
=
''
;
this
.
transferok
=
false
;
this
.
transferok
=
false
;
// console.log(this.robotConfig)
},
},
//确认下一步
//确认下一步
...
@@ -1031,7 +1032,7 @@
...
@@ -1031,7 +1032,7 @@
//修改机器人配置
//修改机器人配置
clickUpdate
()
{
clickUpdate
()
{
this
.
updateRobotConfig
=
this
.
robotConfig
;
this
.
updateRobotConfig
=
Object
.
assign
({},
this
.
robotConfig
)
;
this
.
dialogFormVisible2
=
true
;
this
.
dialogFormVisible2
=
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