This commit is contained in:
2022-07-29 18:03:06 +08:00
parent 66a22b9e10
commit 70c5d5b9ca

View File

@@ -1,5 +1,6 @@
import axios from 'axios'
import { Dialog, toast } from './mUtils.js'
// import { Dialog, toast } from './mUtils.js'
import { toast } from './mUtils.js'
import store from '../../vuex/store'
import router from '@/router'
@@ -18,7 +19,7 @@ axios.interceptors.request.use(
return config
},
error => {
Dialog('错误的传参')
toast('错误的传参')
return Promise.reject(error)
}
)
@@ -53,7 +54,7 @@ export const post = (sevmethod, params) => {
.then(response => {
resolve(response.data)
}, error => {
Dialog(error.message)
toast(error.message)
reject(error.message)
})
.catch((error) => {
@@ -68,7 +69,7 @@ export const post1 = (sevmethod, params) => {
.then(response => {
resolve(response.data)
}, error => {
Dialog(error.message)
toast(error.message)
reject(error.message)
})
.catch((error) => {