浏览代码

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

eiinu 3 年之前
父节点
当前提交
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
       const { origin, hash, pathname } = window.top.location;
       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);