spread.js 881 B

123456789101112131415161718192021
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import { spread } from '@/api/user.js'
  11. import Cache from '@/utils/cache'
  12. const shareScence = function(spid,islogin) {
  13. if(spid)Cache.set("spread", spid || 0);
  14. if(spid && islogin){
  15. spread(spid).then(res=>{
  16. })
  17. }
  18. }
  19. export default shareScence