Commit f6f0da19 authored by 皮倩雯's avatar 皮倩雯

fix: '数据库初始化优化'

parent bdf9bd9d
Pipeline #57232 passed with stages
......@@ -484,7 +484,11 @@ const DatabaseInitialization = props => {
description: '数据库初始化成功',
});
setDbExists(true);
setkeepNumber('已使用');
console.log(keepNumber);
if (keepNumber != '') {
setkeepNumber('已使用');
}
// setkeepNa('');
// setkeepMsg('');
// setkeepCo('');
......
......@@ -100,12 +100,9 @@ const AddModal = props => {
const getMap = () => {
GetIntegratedloginSetting().then(res => {
console.log(res.data);
if (res.data.displayMode == '地图') {
console.log(res.data.mapSettings);
let list = [];
let listSecord = [];
let list = []; // 存省数据
let listSecord = []; // 存市数据
let fff = 0;
res.data.mapSettings.map(i => {
list.push(i[0]);
......@@ -113,8 +110,6 @@ const AddModal = props => {
listSecord.push(i[1]);
}
});
console.log(list);
console.log(listSecord);
if (list.indexOf('100000') != -1) {
fff = 1;
}
......@@ -161,7 +156,6 @@ const AddModal = props => {
});
}
});
console.log(fff);
if (fff == 0) {
data.map(i => {
let aa = [];
......@@ -172,10 +166,8 @@ const AddModal = props => {
}
});
});
console.log(result.districtList[0].districtList);
setOptionsList(data);
} else {
console.log(result.districtList[0].districtList);
setOptionsList(result.districtList[0].districtList);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment