liyongli 2 년 전
부모
커밋
3c3cfeec86
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/config/pageConfig.js

+ 2 - 2
src/config/pageConfig.js

@@ -15,11 +15,11 @@ export function getPageParameters() {
     const v = searchData[i].split("=");
     parames[v[0]] = v[1];
   }
-  const key = location.pathname.replace("/", "").replace(".html", "");
+  const key = location.pathname.replace(".html", "").split("/").reverse();
   return {
     urlParames: parames,
     orginParames: {
-      ...jsonData[key],
+      ...jsonData[key[0]],
       availWidth: window.screen.availWidth,
       availHeight: window.screen.availHeight,
       env: process.env.VUE_APP_ENV,