Sign in

canrd-outside / order-erp-front · Files

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 1
  • Labels
  • Wiki
  • order-erp-front
  • src
  • api
  • demo
  • error.ts
  • feat: add error handle
    7101587b
    vben authored
    2020-10-18 21:55:21 +0800  
    Browse Code »
error.ts 255 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { defHttp } from '/@/utils/http/axios';

enum Api {
  // 该地址不存在
  Error = '/error',
}

/**
 * @description: 触发ajax错误
 */
export function fireErrorApi() {
  return defHttp.request({
    url: Api.Error,
    method: 'GET',
  });
}