Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用边框等组件时,页面显示正常,跳转时路由报错 #28

Open
cosmoscatts opened this issue Feb 14, 2023 · 6 comments
Open

Comments

@cosmoscatts
Copy link

使用的是按需引入,页面显示正常,跳转到其他页面,vue-router 报错

<script setup lang="ts">
import { BorderBox1, BorderBox10, BorderBox13, BorderBox3, BorderBox4 } from '@dataview/datav-vue3/es'
</script>

<template>
  <div wfull h100vh bg="[#17171A]" text-white>
    <BorderBox1>
      <div grid="~ cols-7 rows-3 gap2" p20px pr15px h720px>
        <div col-span-2 row-span-3>
          <BorderBox10>
            <div flex-center hfull>
              1
            </div>
          </BorderBox10>
        </div>
        <div col-span-3 row-span-2>
          <BorderBox3>
            1
          </BorderBox3>
        </div>
        <div col-span-2 row-span-1>
          <BorderBox13>
            1
          </BorderBox13>
        </div>
        <div col-span-2 row-span-1>
          <BorderBox13>
            1
          </BorderBox13>
        </div>
        <div col-span-5 row-span-1>
          <BorderBox4>
            1
          </BorderBox4>
        </div>
      </div>
    </BorderBox1>
  </div>
</template>

TD3B1W6_L{C( FDK7)8(HCM

@Hareis
Copy link

Hareis commented Feb 18, 2023

i have same error, checked 12box codes, suspect the script listen event about window resize

@zhang-shengtao
Copy link

我也遇到了这个一摸一样问题,看源码使用了onUnmounted这个钩子进行停止监听DOM元素的

@liyaxu123
Copy link

我也遇到了这个问题,请问有解决方案吗?

@wind-rain666
Copy link

我也遇到了这个问题,只要组件销毁就会报错,开发模式下页面卡死

@1ljq
Copy link

1ljq commented Apr 28, 2023

我也遇到这个问题,这个组件真的问题一大堆,贼垃圾

@Txq930530
Copy link

给这个组件外层包裹一个div,在执行路由导航之前设置div v-if="false"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants