配置页翻译

This commit is contained in:
2023-12-08 13:36:03 +08:00
parent 00641a1134
commit a1297934bc
8 changed files with 61 additions and 43 deletions

View File

@@ -1,5 +1,6 @@
// import qs from 'qs' // 处理data
import store from '@/vuex/store'
import i18n from '../locale/index.js'
const request = (params) => {
let _self = this;
let url = params.url;
@@ -36,7 +37,8 @@ const request = (params) => {
}
const requestUrl = `${store.getters.baseUrl}/` + url;
uni.showLoading({
title: '加载中...'
// title: '加载中...'
title: i18n.tc('utils.loading')
});
return new Promise((resolve, reject) => {
uni.request({

View File

@@ -1,4 +1,5 @@
import store from '@/vuex/store'
import i18n from '../locale/index.js'
const request1 = (params) => {
let _self = this;
let url = params.url;
@@ -35,7 +36,8 @@ const request1 = (params) => {
}
const requestUrl = url;
uni.showLoading({
title: '加载中...'
// title: '加载中...'
title: i18n.tc('utils.loading')
});
return new Promise((resolve, reject) => {
uni.request({