Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 18a01b8f
authored
Apr 29, 2022
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v4.5.1' of
http://192.168.3.233:8090/glsx-business/dj-car-life…
…-system into dev_v4.5.1
2 parents
fe38f288
2d24f98e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
src/plugin/axios/index.js
vue.config.js
src/plugin/axios/index.js
View file @
18a01b8
import
store
from
'@/store'
import
axios
from
'axios'
import
{
Message
}
from
'element-ui'
import
{
Message
}
from
'element-ui'
import
util
from
'@/libs/util'
import
router
from
'@/router'
// import {
// LogExternals
// } from '@/common/constants'
import
{
baseConfig
}
from
'@/main'
import
{
baseConfig
}
from
'@/main'
import
Qs
from
'qs'
axios
.
defaults
.
withCredentials
=
true
// const expiresMinute = 60 // 过期时间(分钟)
...
...
@@ -48,9 +44,11 @@ function errorLog(error) {
const
service
=
axios
.
create
({
// baseURL: baseURL,
timeout
:
100000
,
// 请求超时时间
transformRequest
:
[
function
(
data
)
{
return
Qs
.
stringify
(
data
)
}]
transformRequest
:
[
function
(
data
)
{
return
Qs
.
stringify
(
data
)
}
]
})
// 请求拦截器
...
...
@@ -58,6 +56,7 @@ service.interceptors.request.use(
config
=>
{
return
new
Promise
(
async
resolve
=>
{
await
store
.
commit
(
'd2admin/loading/set'
,
true
)
// const uuid = util.cookies.get('uuid')
// 如果请求链接不在排除列表 (排除列表: 登录 基础数据) 并且cookie 过期(判断是否长时间未操作)
// if (!LogExternals.some(u => u === url || (params && u === params.method)) && !uuid) {
...
...
vue.config.js
View file @
18a01b8
...
...
@@ -11,7 +11,7 @@ process.env.VUE_APP_BUILD_TIME = require('dayjs')().format('YYYY-M-D HH:mm:ss')
// 基础路径 注意发布之前要先修改这里
// const publicPath = '/dj-carlife-web/'
const
publicPath
=
'
/dj-carlife-web-fz/
'
const
publicPath
=
''
// const CDN_DOMAIN = 'https://cdn.bootcss.com'
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/dj-carlife-web'
const
cdn
=
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment