|
@@ -638,12 +638,13 @@ const changeArea = () => {
|
|
|
if (currentNode[0].pathLabels.length <= 4) {
|
|
|
state.ruleForm.city = currentNode[0].pathLabels[0] ?? ''; // 市
|
|
|
state.ruleForm.county = currentNode[0].pathLabels[1] ?? ''; // 区
|
|
|
- state.ruleForm.town = currentNode[0].pathLabels[2] ?? ''; // 地区
|
|
|
+ state.ruleForm.town = currentNode[0].pathLabels[2] ?? ''; // 乡镇
|
|
|
} else {
|
|
|
// 如果数组长度大于4
|
|
|
state.ruleForm.city = currentNode[0].pathLabels[0] ?? ''; // 市
|
|
|
state.ruleForm.county = currentNode[0].pathLabels[1] ?? ''; // 区
|
|
|
- state.ruleForm.town = currentNode[0].pathLabels[2] ?? ''; // 地区
|
|
|
+ state.ruleForm.town = currentNode[0].pathLabels[2] ?? ''; // 乡镇
|
|
|
+ state.ruleForm.village = currentNode[0].pathLabels[3] ?? ''; // 村社区
|
|
|
state.ruleForm.areaText = currentNode[0].pathLabels.slice(3).join('') ?? ''; // 地区
|
|
|
console.log(state.ruleForm.areaText);
|
|
|
}
|