浏览代码

修复线上问题

zhengjinyi 4 年之前
父节点
当前提交
3794c47d6e
共有 1 个文件被更改,包括 2 次插入1 次删除
  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();