|
@@ -2,7 +2,7 @@ import axios from 'axios'
|
2
|
2
|
import qs from 'qs'
|
3
|
3
|
// import toolClass from './util'
|
4
|
4
|
import router from '@/router'
|
5
|
|
-import { Toast } from 'vant';
|
|
5
|
+import { Dialog } from 'vant';
|
6
|
6
|
|
7
|
7
|
const token = function (headers) {
|
8
|
8
|
let JWT = ''
|
|
@@ -93,11 +93,7 @@ const ajax = (...args) => {
|
93
|
93
|
if (message.indexOf("log-error") != -1) {
|
94
|
94
|
console.log(message)
|
95
|
95
|
} else {
|
96
|
|
- Toast.fail({
|
97
|
|
- duration: 2000, // 持续展示 toast
|
98
|
|
- forbidClick: true, // 禁用背景点击
|
99
|
|
- message: message
|
100
|
|
- })
|
|
96
|
+ Dialog.alert({ message: message })
|
101
|
97
|
}
|
102
|
98
|
reject(message)
|
103
|
99
|
}
|