gaosp
2024-01-14 0d626ae57149d5ed40a32bd8b808ca6069aa6d5e
src/utils/ajax.js
@@ -1,7 +1,7 @@
/*
 * @Date: 2022-11-09 12:37:25
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-07 23:53:33
 * @LastEditTime: 2024-01-12 22:39:31
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/utils/ajax.js
 */
import axios from 'axios'
@@ -54,11 +54,11 @@
     */
    const status = response.status
    if (status !== 200) {
      Message({
        message: '服务连接异常,请稍后重试或联系管理员',
        type: 'error',
        duration: 5 * 1000
      })
      // Message({
      //   message: '服务连接异常,请稍后重试或联系管理员',
      //   type: 'error',
      //   duration: 5 * 1000
      // })
      return Promise.reject('error')
    } else {
      // const data = response.data || {}