| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*
- * @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.*'
- ],
- 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();
- }
- }
- );
- }
- });
|