|
@@ -15,7 +15,7 @@ import { Loading } from 'element-ui'
|
|
|
// create an axios instance
|
|
|
const service = axios.create({
|
|
|
//baseURL: baseURL, // url = base url + request url
|
|
|
- //baseURL: 'http://106.14.243.117:9002',
|
|
|
+ // baseURL: 'http://192.168.3.239:8998',
|
|
|
baseURL: `${PLATFROM_CONFIG.baseUrl}`,
|
|
|
// withCredentials: true, // send cookies when cross-domain requests
|
|
|
timeout: 30000, // request timeout
|
|
@@ -109,7 +109,7 @@ service.interceptors.response.use(
|
|
|
type: 'error',
|
|
|
duration: 5 * 1000,
|
|
|
onClose: () => {
|
|
|
- store.dispatch('tagsView/delAllViews').then(() => {})
|
|
|
+ store.dispatch('tagsView/delAllViews').then(() => { })
|
|
|
store.dispatch('user/resetToken').then(() => {
|
|
|
location.reload()
|
|
|
})
|
|
@@ -159,7 +159,7 @@ service.interceptors.response.use(
|
|
|
duration: 5 * 1000,
|
|
|
onClose: () => {
|
|
|
store.dispatch('app/toggleDialog', false)
|
|
|
- store.dispatch('tagsView/delAllViews').then(() => {})
|
|
|
+ store.dispatch('tagsView/delAllViews').then(() => { })
|
|
|
store.dispatch('user/resetToken').then(() => {
|
|
|
location.reload()
|
|
|
})
|