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

setupI18n插件引起路由跳转报错 #223

Open
haoqing opened this issue Oct 21, 2024 · 0 comments
Open

setupI18n插件引起路由跳转报错 #223

haoqing opened this issue Oct 21, 2024 · 0 comments

Comments

@haoqing
Copy link

haoqing commented Oct 21, 2024

Bug report(问题描述)

直接在列表中点查看(路由跳转)就没问题,点弹窗后再关闭,再点列表页的查看就出错(路由跳转)。在main.ts中把setupI18n插件注释掉就没问题了。
问题示例代码附在了附件里。
首页.txt
弹窗页.txt
列表页.txt

Steps to reproduce(问题复现步骤)

新建一个首页,再建一个列表页,再建一个添加页,在首页中引用列表页和添加页。点击添加打开弹窗,关闭,再点列表页中的查看就报:
vue-i18n.js?v=38685105:4549 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '__disposer')
at Proxy.unmounted (vue-i18n.js?v=38685105:4549:20)
at chunk-DAEFIKAZ.js?v=38685105:4906:40
at callWithErrorHandling (chunk-DAEFIKAZ.js?v=38685105:2326:19)
at callWithAsyncErrorHandling (chunk-DAEFIKAZ.js?v=38685105:2333:17)
at hook.__weh.hook.__weh (chunk-DAEFIKAZ.js?v=38685105:4886:19)
at flushPostFlushCbs (chunk-DAEFIKAZ.js?v=38685105:2511:28)
at Object.render2 [as render] (chunk-DAEFIKAZ.js?v=38685105:8080:7)
at render (chunk-DAEFIKAZ.js?v=38685105:12183:20)
at chunk-N7R623IF.js?v=38685105:301:5
at chunk-N7R623IF.js?v=38685105:323:57
错误位置:
delete this.$t;
delete this.$rt;
delete this.$tc;
delete this.$te;
delete this.$d;
delete this.$n;
delete this.$tm;
if (_vueI18n.__disposer) {
_vueI18n.__disposer();
delete _vueI18n.__disposer;
delete _vueI18n.__extender;
}
i18n.__deleteInstance(instance);
delete this.$i18n;中的if (_vueI18n.__disposer) 引起的错误。

Screenshot or Gif(截图或动态图)

Link to minimal reproduction(最小可在线还原 demo)

Other relevant information(格外信息)

  • Your OS:
  • Node.js version:
  • packageManager:
    首页.txt
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

1 participant