Explorar o código

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

TANGSHIZHE %!s(int64=4) %!d(string=hai) anos
pai
achega
66702c0fd9
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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)