Commit 5b19b6e5 authored by 仇晓婷's avatar 仇晓婷

收藏优化

parent fb7d0b62
......@@ -359,8 +359,10 @@ export default {
shoucang() {
if (this.showStar) {
let url = `${systemUrl}/favorite/delete`;
this.$api.delete(url, { id: this.menuId }).then((r) => {
if (r.result) {
let menuId = [];
menuId.push(this.menuId);
this.$api.post(url, menuId).then((r) => {
if (r.success) {
this.showStar = false;
this.$Message.success("已取消收藏");
this.content = "收藏";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment