magic-editor-config.js 836 B

12345678910111213141516171819202122
  1. var MAGIC_EDITOR_CONFIG = {
  2. title: 'Learun Admin Web IDE',
  3. header: {
  4. skin: true, // 屏蔽皮肤按钮
  5. document: false, // 屏蔽文档按钮
  6. repo: false, // 屏蔽gitee和github
  7. qqGroup: false // 屏蔽加入QQ群
  8. },
  9. // 其它配置参考本页中其它配置项
  10. request: {
  11. beforeSend: function (config) {
  12. // console.log('请求设置', window.location.href);
  13. // config.headers.Authorization = "Bearer " + window.location.href.split('Authorization=')[1];
  14. config.headers.Authorization = window.location.href.split('Authorization=')[1];
  15. return config;
  16. },
  17. onError: function (err) {
  18. // console.log('请求出错');
  19. return Promise.reject(err)
  20. }
  21. },
  22. }