This commit is contained in:
2022-07-29 18:14:55 +08:00
parent 70c5d5b9ca
commit dc09a9af44

View File

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