29 Star 327 Fork 303

tiger1103 / gfast-ui

 / 详情

登录页面,火狐提示Uncaught (in promise) TypeError: _ctx.$t is not a function,换了几个浏览器也一样

待办的
创建于  
2022-09-16 11:28

Uncaught (in promise) TypeError: _ctx.$t is not a function
default index.vue:14
renderFnWithContext runtime-core.esm-bundler.js:850
renderSlot runtime-core.esm-bundler.js:6579
setup tabs.ts:179
renderComponentRoot runtime-core.esm-bundler.js:893
componentUpdateFn runtime-core.esm-bundler.js:5030
run reactivity.esm-bundler.js:167
setupRenderEffect runtime-core.esm-bundler.js:5156
mountComponent runtime-core.esm-bundler.js:4939
processComponent runtime-core.esm-bundler.js:4897
patch runtime-core.esm-bundler.js:4489
mountChildren runtime-core.esm-bundler.js:4685
mountElement runtime-core.esm-bundler.js:4594
processElement runtime-core.esm-bundler.js:4566
patch runtime-core.esm-bundler.js:4486
mountChildren runtime-core.esm-bundler.js:4685
mountElement runtime-core.esm-bundler.js:4594
processElement runtime-core.esm-bundler.js:4566
patch runtime-core.esm-bundler.js:4486
mountChildren runtime-core.esm-bundler.js:4685
mountElement runtime-core.esm-bundler.js:4594
processElement runtime-core.esm-bundler.js:4566
patch runtime-core.esm-bundler.js:4486
mountChildren runtime-core.esm-bundler.js:4685
mountElement runtime-core.esm-bundler.js:4594
processElement runtime-core.esm-bundler.js:4566
patch runtime-core.esm-bundler.js:4486
mountChildren runtime-core.esm-bundler.js:4685
mountElement runtime-core.esm-bundler.js:4594
processElement runtime-core.esm-bundler.js:4566
patch runtime-core.esm-bundler.js:4486
componentUpdateFn runtime-core.esm-bundler.js:5037
run reactivity.esm-bundler.js:167
setupRenderEffect runtime-core.esm-bundler.js:5156
mountComponent runtime-core.esm-bundler.js:4939
processComponent runtime-core.esm-bundler.js:4897
patch runtime-core.esm-bundler.js:4489
componentUpdateFn runtime-core.esm-bundler.js:5107
run reactivity.esm-bundler.js:167
callWithErrorHandling runtime-core.esm-bundler.js:155
flushJobs runtime-core.esm-bundler.js:394

评论 (1)

sonic5 创建了任务

修复这个问题添加 globalInjection: true 到i18n插件当中

const i18n = createI18n({
globalInjection: true,

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
JavaScript
1
https://gitee.com/tiger1103/gfast-ui.git
git@gitee.com:tiger1103/gfast-ui.git
tiger1103
gfast-ui
gfast-ui

搜索帮助