feat: 非vue文件支持多语言

This commit is contained in:
菲鸽
2024-01-29 16:59:12 +08:00
parent 33061591a4
commit 6376816d0b
3 changed files with 31 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
/* eslint-disable no-param-reassign */
import { useUserStore } from '@/store'
import { UserInfo } from '@/typings'
import { translate as t } from '@/locale/index'
type Data<T> = {
code: number
@@ -8,6 +9,11 @@ type Data<T> = {
result: T
}
uni.showModal({
title: '菲鸽',
content: t('app.name'),
})
// 请求基地址
const baseURL = import.meta.env.VITE_SERVER_BASEURL
// console.log(import.meta.env)