中英文

This commit is contained in:
2020-11-10 09:33:40 +08:00
parent 3874f6ab2e
commit 73eceefbf0
6 changed files with 48 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
import router from '@/router';
import store from '@/store';
import { LiveList, LivelistInfo, LoginData, UserInfo } from '@/types';
import { saveValue } from '@/utils/common';
import { getValue, saveValue } from '@/utils/common';
import { message } from 'ant-design-vue';
import { del, get, post, put, setToken } from './base'
@@ -1014,11 +1014,21 @@ export async function luzhi(roomid: string){
export async function getaddr() {
const res = await get<any>('ip');
const gj = res.data.address.split("|")[0];
if(gj == "CN"){
return ["zh", "中文", '人民币¥'];
}else {
return ['en', 'English', '美元$']
const lan = getValue("Lanvuage");
if(lan != null && lan){
if(gj == "CN"){
return ['人民币¥'];
}else {
return [ '美元$']
}
}else{
if(gj == "CN"){
return ["zh", "中文", '人民币¥'];
}else {
return ['en', 'English', '美元$']
}
}
}
// export async function StopMCUMixTranscode(roomid: number) {