This commit is contained in:
2025-08-20 01:01:01 +08:00
parent d09f988d7c
commit 3a441bddc2
6 changed files with 338 additions and 40 deletions

View File

@@ -367,9 +367,13 @@
<script>
import { listFavoriteProduct, getFavoriteProduct, delFavoriteProduct, addFavoriteProduct, updateFavoriteProduct, updateTopStatus, quickPublishFromFavorite } from "@/api/system/favoriteProduct";
import { mapGetters, mapActions } from 'vuex'
export default {
name: "FavoriteProduct",
computed: {
...mapGetters(['favoriteProductRefreshKey'])
},
data() {
return {
// 遮罩层
@@ -439,6 +443,12 @@ export default {
created() {
this.getList();
},
watch: {
favoriteProductRefreshKey() {
// 全局刷新标记变更时,自动刷新列表
this.getList();
}
},
methods: {
/** 查询常用商品列表 */
getList() {