Skip to content

Commit 6d9d803

Browse files
committed
fix(weapp-domain): 避免切换应用时表格错位
1 parent fe5e0ba commit 6d9d803

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

custom/js/weapp-domains.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ angular.module('app').controller('WeappDomainsCtrl', [
55
'$timeout',
66
'$compile',
77
function ($http, $scope, $rootScope, $timeout, $compile) {
8-
$scope.domains = {
9-
request: ['正在获取配置'],
10-
upload: '正在获取配置',
11-
download: '正在获取配置'
12-
};
13-
148
const APP_ROUTER_DOMAIN = 'app-router.leancloud.cn';
159

1610
$scope.$watch('pageState.currentApp',function(){
1711
var currentApp = $rootScope.pageState.currentApp;
1812
console.log($rootScope.pageState.currentApp);
19-
$scope.domains.request = [];
13+
$scope.domains = {
14+
request: ['正在获取配置'],
15+
upload: '正在获取配置',
16+
download: '正在获取配置'
17+
};
2018
if (currentApp) {
2119
$http.get('/1.1/clients/self/apps/' + currentApp.app_id + '/platformCustomDomains').then(function (data) {
2220
if (data.data && data.data.length) {

0 commit comments

Comments
 (0)