UNPKG

mobileoa-common-modules

Version:

移动办公平台前端公共功能模块

23 lines (18 loc) 633 B
'use strict'; var angular = require('angular'); require('../modules'); angular .module('appconfig.controller') .controller('appConfigCtrl', appConfigCtrl); /** @ngInject */ function appConfigCtrl($scope) { // $scope.data = {}; // $scope.data.serverUrl = AppConfig.serverUrl; // $scope.data.vpnUrl = JSON.parse(window.localStorage.config).vpnUrl; // $scope.$watch('data', function() { // window.localStorage.serverUrl = $scope.data.serverUrl; // window.localStorage.config = JSON.stringify($scope.data); // /*调用相关插件的接口,将更改后的数据传入接口*/ // //todo // }, true); }