| | |
| | | /*
|
| | | * @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'
|
| | |
| | | */
|
| | | 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 || {}
|