/* * @Description: * @Author: hy * @Date: 2019-08-12 17:59:33 * @LastEditTime: 2019-08-16 15:37:37 */ Ext.define('uas.Application', { extend: 'Ext.app.Application', requires: [ 'uas.*', 'Ext.form.field.*', 'Ext.ux.form.*' ], name: 'uas', controllers: [ 'Global', 'Samples' ], defaultToken: '', init: function() { Ext.tip.QuickTipManager.init(null, { showOnTap: true }); if (!Ext.platformTags.test) { Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider',{ expires: new Date(new Date().getTime()+(1000*60*60*24*30)) //30 days })); } }, launch: function () { var view = 'uas.view.main.Main'; this.setMainView({ xclass: view }); }, onAppUpdate: function () { // Ext.Msg.confirm('Application Update', 'This application has an update, reload?', // function (choice) { // if (choice === 'yes') { // window.location.reload(); // } // } // ); } });