liyongli před 2 roky
rodič
revize
3c3cfeec86
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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,