updated 方言定制失败问题修复

This commit is contained in:
PASSER-BY
2022-10-13 01:33:29 +08:00
parent ab84940618
commit 08feb7355f
10 changed files with 84 additions and 52 deletions

View File

@@ -1,4 +1,3 @@
// 粤语
export default {
'name':'广东',
'data':{

19
src/locale/north.js Normal file
View File

@@ -0,0 +1,19 @@
export default {
'name':'北方',
'data':{
'm,m':['姥姥'],
'm,m,xs':['姨姥姥'],
'm,m,xs,h':['姨姥爷'],
'm,m,xb':['舅姥爷'],
'm,m,xb,w':['舅姥姥'],
'm,f':['姥爷'],
'm,f,xs':['姑姥姥'],
'm,f,xs,h':['姑姥爷'],
'm,f,ob':['大姥爷'],
'm,f,ob,w':['大姥姥'],
'm,f,lb':['小姥爷'],
'm,f,lb,w':['小姥姥'],
'f,ob':['大爷'],
'f,ob,w':['大娘'],
}
}

View File

@@ -589,11 +589,11 @@ export function setMode(sign,data){
// 获取模式数据
export function getDataByMode(sign){
var data = Object.assign({},_map);
_data = Object.assign({},_map);
if(sign&&_mode[sign]){
for(var key in _mode[sign]){
data[key] = [].concat(_mode[sign][key],_map[key]||[]);
_data[key] = [].concat(_mode[sign][key],_map[key]||[]);
}
}
return data;
return _data;
};

View File

@@ -1,7 +1,9 @@
import guangdong from './locale/guangdong';
import north from './locale/north';
const relationshipMode = {
guangdong
guangdong,
north
};
export default relationshipMode;