mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update form_region.html
This commit is contained in:
parent
bb38822f93
commit
ab43e38a13
@ -50,8 +50,8 @@
|
|||||||
|
|
||||||
function callback($rootScope) {
|
function callback($rootScope) {
|
||||||
$rootScope.items = angular.fromJson(data);
|
$rootScope.items = angular.fromJson(data);
|
||||||
$rootScope.province = $rootScope.items[0];
|
$rootScope.province = $rootScope.items[0] || {subs: []};
|
||||||
$rootScope.city = $rootScope.province.subs[0];
|
$rootScope.city = $rootScope.province.subs[0] || [];
|
||||||
/*! 数据显示状态转换 */
|
/*! 数据显示状态转换 */
|
||||||
$rootScope.items.forEach(function (province) {
|
$rootScope.items.forEach(function (province) {
|
||||||
province.status = !!province.status;
|
province.status = !!province.status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user