| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*
- * @Description:
- * @Author: hy
- * @Date: 2019-08-12 17:59:33
- * @LastEditTime: 2019-08-14 18:21:37
- */
- Ext.define('uas.Application', {
- extend: 'Ext.app.Application',
- requires: [
- 'uas.view.main.*',
- 'uas.controller.Global',
- 'uas.model.Base'
- ],
- name: 'uas',
- controllers: [
- 'Global',
- ],
- 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();
- }
- }
- );
- }
- });
|