Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
5b19b6e5
Commit
5b19b6e5
authored
Aug 08, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收藏优化
parent
fb7d0b62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product.vue
layouts/basic-layout/product.vue
+4
-2
No files found.
layouts/basic-layout/product.vue
View file @
5b19b6e5
...
@@ -359,8 +359,10 @@ export default {
...
@@ -359,8 +359,10 @@ export default {
shoucang
()
{
shoucang
()
{
if
(
this
.
showStar
)
{
if
(
this
.
showStar
)
{
let
url
=
`
${
systemUrl
}
/favorite/delete`
;
let
url
=
`
${
systemUrl
}
/favorite/delete`
;
this
.
$api
.
delete
(
url
,
{
id
:
this
.
menuId
}).
then
((
r
)
=>
{
let
menuId
=
[];
if
(
r
.
result
)
{
menuId
.
push
(
this
.
menuId
);
this
.
$api
.
post
(
url
,
menuId
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
showStar
=
false
;
this
.
showStar
=
false
;
this
.
$Message
.
success
(
"已取消收藏"
);
this
.
$Message
.
success
(
"已取消收藏"
);
this
.
content
=
"收藏"
;
this
.
content
=
"收藏"
;
...
...
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