mobileoa-common-modules
Version:
移动办公平台前端公共功能模块
32 lines (23 loc) • 709 B
JavaScript
;
var angular = require('angular');
require('../modules');
angular
.module('appconfig.services')
.factory('appFlowConfigService', appFlowConfigService);
/**
* @ngInject
*/
function appFlowConfigService(CacheService, LinkerService, $state) {
var NEED_GESTRUE_PASSWORD = 'appconfig_need_gesture_password';
var appFlowConfigService = {
needGesturePassword: needGesturePassword,
setNeedGesturePassword: setNeedGesturePassword
};
return appFlowConfigService;
function needGesturePassword() {
return CacheService.get(NEED_GESTRUE_PASSWORD, true);
}
function setNeedGesturePassword(need) {
return CacheService.put(NEED_GESTRUE_PASSWORD, need);
}
}