ソースを参照

fix: vue-h5 文档与 demo 互相跳转

eiinu 2 年 前
コミット
71ec120028
1 ファイル変更1 行追加2 行削除
  1. 1 2
      src/sites/mobile/App.vue

+ 1 - 2
src/sites/mobile/App.vue

@@ -36,8 +36,7 @@ export default defineComponent({
       // demo转换index
       // demo转换index
       const { origin, hash, pathname } = window.top.location;
       const { origin, hash, pathname } = window.top.location;
       if (!isMobile && pathname.includes('demo')) {
       if (!isMobile && pathname.includes('demo')) {
-        window.top.location.href = `${origin}/4x/index.html${hash}`;
-        window.location.href = `${origin}/4x/demo.html${hash}`;
+        window.location.href = `${origin}/h5/vue/4x/index.html#/zh-CN/${hash.slice(2)}`;
       }
       }
       // 接收数据
       // 接收数据
       window.addEventListener('message', handledemoFromParent);
       window.addEventListener('message', handledemoFromParent);