Selaa lähdekoodia

Merge branch 'dev4.5.2' of http://172.16.10.252:8080/qmx/jy into dev4.5.2

TANGSHIZHE 4 vuotta sitten
vanhempi
commit
66702c0fd9
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      src/web/staticres/frontRouter/pc/collection/js/index-pc.js

+ 5 - 1
src/web/staticres/frontRouter/pc/collection/js/index-pc.js

@@ -136,7 +136,11 @@ var vm = new Vue({
                 type: 'POST',
                 success: function (res) {
                     if (res.error_code === 0) {
-                        this.tagList = res.data.reverse() || []
+                        if (res.data) {
+                            this.tagList = res.data.reverse()
+                        } else {
+                            this.tagList = []
+                        }
                         this.initSelectTagList()
                         if (this.urlFilterTagId.length) {
                             this.filterState.tags = this.filterState.tags.concat(this.urlFilterTagId)