diff --git a/src/config/http.js b/src/config/http.js index 0434ddf..b807f20 100644 --- a/src/config/http.js +++ b/src/config/http.js @@ -1,5 +1,5 @@ import axios from 'axios' -import { Dialog } from './utils.js' +// import { Dialog } from './utils.js' import store from '../vuex/store' import router from '@/router' import i18n from '../i18n/i18n' @@ -37,7 +37,7 @@ axios.interceptors.response.use( if (error && error.response) { switch (error.response.status) { case 400: - Dialog(error.message) + // Dialog(error.message) break case 401: store.dispatch('setSignOut') diff --git a/src/pages/modules/login/login.vue b/src/pages/modules/login/login.vue index 2e6c281..888d207 100644 --- a/src/pages/modules/login/login.vue +++ b/src/pages/modules/login/login.vue @@ -164,17 +164,15 @@ export default { } catch (err) { this.disabled = false // this.toast(err) - if (err.status !== 400) { - const loading = this.$loading({ - lock: true, - text: this.$t('common.loading'), - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }) - setTimeout(() => { - loading.close() - }, 4000) - } + const loading = this.$loading({ + lock: true, + text: this.$t('common.loading'), + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) + setTimeout(() => { + loading.close() + }, 4000) } }, show (e) { diff --git a/src/vuex/modules/com.js b/src/vuex/modules/com.js index 4e32a48..8da4c24 100644 --- a/src/vuex/modules/com.js +++ b/src/vuex/modules/com.js @@ -2,7 +2,7 @@ import * as types from '../types' import { getStore, setStore } from '@config/utils.js' const baseUrl = process.env.NODE_ENV === 'development' ? 'http://43.139.166.161:8018' : 'http://localhost:8018' -const setTime = '3000' +const setTime = '1000' const state = { baseUrl: getStore('baseUrl') || baseUrl, setTime: getStore('setTime') || setTime,