text: import wya from '@wya/js-sdk';
  import Toasts from '@common/toast/toast';
  import markdown from '@docs/events/keyBack.md';
  
  const invoke = {
  	on: () => {
  		wya.on('keyBack', (res) => {
  			res = typeof res === 'object' ? JSON.stringify(res) : (res || '无数据');
  			Toasts.info(res, 0);
  
  		});
  	},
  	off: () => {
  		wya.off('keyBack');
  	},
  	debugger: () => {
  		// 强制执行
  		wya.invoke('debugger/invoke', {
  			eventName: 'keyBack'
  		}).then((res) => {
  			Toasts.info('执行成功', 0);
  		}).catch((res = {}) => {
  			Toasts.info('执行失败：' + res.msg, 0);
  		});
  	}
  };
  
  export default {
  	to: '/events/keyBack',
  	title: 'keyBack',
  	label: '返回',
  	invoke,
  	markdown
  };
  