Update form_region.html

This commit is contained in:
邹景立 2021-01-29 18:03:11 +08:00
parent bb38822f93
commit ab43e38a13

View File

@ -50,8 +50,8 @@
function callback($rootScope) {
$rootScope.items = angular.fromJson(data);
$rootScope.province = $rootScope.items[0];
$rootScope.city = $rootScope.province.subs[0];
$rootScope.province = $rootScope.items[0] || {subs: []};
$rootScope.city = $rootScope.province.subs[0] || [];
/*! 数据显示状态转换 */
$rootScope.items.forEach(function (province) {
province.status = !!province.status;