1
xuxueyang
2024-09-12 c34207ce5511f647d9ee78c97e8a2c26738cee56
plugins/http.js
@@ -1,7 +1,7 @@
import environments from '@/environments'
import message from './message'
import storage from './storage'
// import store from '../store'
import store from '../store'
import utils from './util.js'
// import Vue from 'vue'
// import {
@@ -52,6 +52,7 @@
            dataType: options.dataType ? options.dataType : 'json',
            data: options.data || null,
            header,
            timeout: 30000,
            success: async (res) => {
               if (!options.ignore) {
                  message.hideLoading()
@@ -219,6 +220,7 @@
               if (!options.ignore) {
                  message.hideLoading()
               }
               message.showToast('网络异常')
               reject({
                  data: null,
                  code: 9999,