-
Notifications
You must be signed in to change notification settings - Fork 949
Description
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