space.recycle.js 415 B

123456789101112131415161718192021222324252627
  1. function removeTokens(url, param) {
  2. window.onunload = function (type) {
  3. if(type && type != 0) {
  4. if (!window.isLayer && parent == space.topWin) {
  5. space.plugins.loading.top.show();
  6. }
  7. }
  8. if (!param) {
  9. return;
  10. }
  11. if (url == 'nullToken') {
  12. return;
  13. }
  14. try {
  15. space.topWin.spaceIndex.recycleToken(url, {
  16. tokenList: param
  17. });
  18. } catch (error) {
  19. console.error(error);
  20. }
  21. }
  22. }