Ver Fonte

修复线上问题

zhengjinyi há 4 anos atrás
pai
commit
3794c47d6e
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/resources/static/js/single-page/topic.js

+ 2 - 1
src/main/resources/static/js/single-page/topic.js

@@ -34,7 +34,8 @@ var topicPage = new Vue({
         }
     },
     created: function () {
-        this.pageType = getUrlParam("type") ? getUrlParam("type")*1 : 0;
+        var paramsArr = window.location.pathname.split(".")[0].split("-");
+        this.pageType  =  paramsArr.length>=1 ? paramsArr[1] : '';
         // 获取列表数据
         this.getFloorDatas();
         this.GetPageTopicBanner();