Quellcode durchsuchen

修改勾选店铺无法勾选中的问题

tremble vor 5 Jahren
Ursprung
Commit
4388e3c4ad

+ 2 - 2
admins/fd-mall-backstage/js/sys/user.js

@@ -179,8 +179,8 @@ var vm = new Vue({
                             if (that.user.brandList) {
                                 that.user.brandList.forEach(function(sub){
                                     // item['checked'] = false
-                                    if (item.id===sub.brandId) {
-                                    item['checked'] = true
+                                    if (item.id===sub.brandId||item.id===sub.id) {
+                                        item['checked'] = true
                                         return
                                     }
                                 })

+ 2 - 2
admins/zl-mall-backstage/js/sys/user.js

@@ -179,8 +179,8 @@ var vm = new Vue({
                             if (that.user.brandList) {
                                 that.user.brandList.forEach(function(sub){
                                     // item['checked'] = false
-                                    if (item.id===sub.brandId) {
-                                    item['checked'] = true
+                                    if (item.id===sub.brandId||item.id===sub.id) {
+                                        item['checked'] = true
                                         return
                                     }
                                 })