fix: 文件找不到
This commit is contained in:
parent
71f10098c5
commit
2d8652a69d
@ -1,5 +1,4 @@
|
||||
import pagesJson from '@/pages.json'
|
||||
import { translate as t } from '@/locale/index'
|
||||
|
||||
console.log(pagesJson)
|
||||
|
||||
@ -12,15 +11,3 @@ export const getIsTabbar = () => {
|
||||
const currPath = pages.at(-1).route
|
||||
return !!pagesJson.tabBar.list.find((e) => e.pagePath === currPath)
|
||||
}
|
||||
|
||||
/**
|
||||
* test i18n in not .vue file
|
||||
*/
|
||||
export const testI18n = () => {
|
||||
console.log(t('app.name'))
|
||||
// 下面同样生效
|
||||
uni.showModal({
|
||||
title: 'i18n 测试',
|
||||
content: t('app.name'),
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user