Browse Source

供应商装扮主页

zhengjinyi 1 year ago
parent
commit
c719b1efdc

+ 4 - 2
src/main/resources/static/js/supplier-center/shop/mixins/disguiseMixins.js

@@ -169,14 +169,16 @@ const disguiseMixins = function () {
                     type: 'warning'
                 }).then(() => {
                     this.deleteShopBanner(row.id)
+                    _this.getBannerList()
                 })
             },
             // 删除广告图
             deleteShopBanner(id){
+                const _this = this;
                 SupplierApi.deleteShopBanner({id: id}, function (res) {
                     if (res.code === 0) {
-                        CAIMEI.dialog('删除成功');
-                        location.reload()
+                        CAIMEI.dialog('删除成功')
+                        _this.getBannerList()
                     }
                 })
             },