Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
27431299
authored
Jan 13, 2020
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
97d5d6ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
src/views/common/index.vue
+2
-9
No files found.
src/views/common/index.vue
View file @
27431299
...
...
@@ -108,7 +108,6 @@
</template>
<
script
>
import
{
updateArticle
}
from
'@/api/article'
import
{
addKey
,
getValueList
}
from
'@/api/common'
import
waves
from
'@/directive/waves'
// waves directive
import
Pagination
from
'@/components/Pagination'
// secondary package based on el-pagination
...
...
@@ -282,14 +281,8 @@ export default {
if
(
valid
)
{
const
tempData
=
Object
.
assign
({},
this
.
temp
)
tempData
.
timestamp
=
+
new
Date
(
tempData
.
timestamp
)
// change Thu Nov 30 2017 16:41:05 GMT+0800 (CST) to 1512031311464
updateArticle
(
tempData
).
then
(()
=>
{
for
(
const
v
of
this
.
list
)
{
if
(
v
.
id
===
this
.
temp
.
id
)
{
const
index
=
this
.
list
.
indexOf
(
v
)
this
.
list
.
splice
(
index
,
1
,
this
.
temp
)
break
}
}
addKey
(
tempData
).
then
(()
=>
{
this
.
getList
()
this
.
dialogFormVisible
=
false
this
.
$notify
({
title
:
'Success'
,
...
...
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