1
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user