天气组件的市区改为城市名字

This commit is contained in:
fangxiang 2022-05-28 16:47:01 +08:00
parent 7deb0fc847
commit f9b78b7674
2 changed files with 3 additions and 2 deletions

View File

@ -148,6 +148,7 @@ export default defineComponent({
const build_info = await GlobalData.getInstance() const build_info = await GlobalData.getInstance()
.getCurrentClient() .getCurrentClient()
?.getBuildInfo(); ?.getBuildInfo();
console.log(build_info);
if (build_info) { if (build_info) {
server_version.value = build_info.version; server_version.value = build_info.version;
server_commit_hash.value = build_info.commit_hash; server_commit_hash.value = build_info.commit_hash;

View File

@ -381,9 +381,9 @@ export default defineComponent({
area_options.value = []; area_options.value = [];
for (const _area of city_data.data.areas) { for (const _area of city_data.data.areas) {
let area_value = _area.area; let area_value = _area.area;
if (_area.area == city.value) { /*if (_area.area == city.value) {
area_value = $t.t("city_city_area"); area_value = $t.t("city_city_area");
} }*/
area_options.value.push({ area_options.value.push({
label: area_value, label: area_value,
value: area_value, value: area_value,