|
@@ -2,7 +2,6 @@ import Vue from "vue";
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
import router from "../router";
|
|
import router from "../router";
|
|
import { loadProgressBar } from "axios-progress-bar";
|
|
import { loadProgressBar } from "axios-progress-bar";
|
|
-import networkInformationHint from "./networkInformationHint.js";
|
|
|
|
import { initSyncTime, fetchTime } from "./syncServerTime";
|
|
import { initSyncTime, fetchTime } from "./syncServerTime";
|
|
import { getAuthorization } from "./crypto";
|
|
import { getAuthorization } from "./crypto";
|
|
function setAuth(config) {
|
|
function setAuth(config) {
|
|
@@ -80,7 +79,6 @@ function returnLogin() {
|
|
|
|
|
|
_$httpWith500Msg.interceptors.request.use(
|
|
_$httpWith500Msg.interceptors.request.use(
|
|
function (config) {
|
|
function (config) {
|
|
- networkInformationHint();
|
|
|
|
// Do something before request is sent
|
|
// Do something before request is sent
|
|
if (!noauthUrls.some((url) => config.url.includes(url))) {
|
|
if (!noauthUrls.some((url) => config.url.includes(url))) {
|
|
setAuth(config);
|
|
setAuth(config);
|
|
@@ -133,7 +131,6 @@ _$httpWith500Msg.interceptors.request.use(
|
|
_$http.interceptors.request.use(
|
|
_$http.interceptors.request.use(
|
|
// no auto 500 error UI
|
|
// no auto 500 error UI
|
|
function (config) {
|
|
function (config) {
|
|
- networkInformationHint();
|
|
|
|
// Do something before request is sent
|
|
// Do something before request is sent
|
|
if (!noauthUrls.some((url) => config.url.includes(url))) {
|
|
if (!noauthUrls.some((url) => config.url.includes(url))) {
|
|
setAuth(config);
|
|
setAuth(config);
|
|
@@ -363,7 +360,6 @@ _$http.interceptors.response.use(
|
|
_$httpWithoutBar.interceptors.request.use(
|
|
_$httpWithoutBar.interceptors.request.use(
|
|
// no auto 500 error UI
|
|
// no auto 500 error UI
|
|
function (config) {
|
|
function (config) {
|
|
- networkInformationHint();
|
|
|
|
// Do something before request is sent
|
|
// Do something before request is sent
|
|
if (!noauthUrls.some((url) => config.url.includes(url))) {
|
|
if (!noauthUrls.some((url) => config.url.includes(url))) {
|
|
setAuth(config);
|
|
setAuth(config);
|