feat: 非vue文件支持多语言
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user