Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
mingPayPc
Commits
f52e6859
Commit
f52e6859
authored
Jun 24, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置问题修改Token修改
parent
feba5e9c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
axios.js
src/api/axios.js
+2
-2
constant.js
src/api/constant.js
+1
-0
Dashboard.vue
src/components/pages/Dashboard.vue
+1
-1
No files found.
src/api/axios.js
View file @
f52e6859
import
axios
from
'axios'
import
qs
from
'qs'
// axios.defaults.baseURL = 'http://192.168.1.193:8300' // 本地荣
// axios.defaults.baseURL = 'http://192.168.1.174:8300' // 本地钱
axios
.
defaults
.
baseURL
=
'http://139.196.213.18:8300'
// beta环境
let
loadingInstance
// 创建Loading 的实例
// axios.defaults.headers.post['Content-Type'] = 'application/json; charset=utf
-8'
axios
.
defaults
.
headers
.
post
[
'Content-Type'
]
=
'application/x-www-form-urlencoded;charset=UTF
-8'
// axios.defaults.crossDomain = true
// axios.defaults.withCredentials = true // 设置cross跨域 并设置访问权限 允许跨域携带cookie信息
axios
.
defaults
.
headers
[
'Authorization'
]
=
`Bearer
${
sessionStorage
.
getItem
(
'token'
)}
`
// 设置请求头为 Authorization
...
...
src/api/constant.js
View file @
f52e6859
const
MINGPAY_CONSTANT
=
{
MINGPAY_CONSTANT_URL
:
'http://mingpay-web-beta.mingwork.com:8888/'
,
// MINGPAY_CONSTANT_URL: 'http://ming.vaiwan.com/',
MINGPAY_CONSTANT_AGENTID
:
270198704
,
MINGPAY_CONSTANT_VERSION
:
'v1'
}
...
...
src/components/pages/Dashboard.vue
View file @
f52e6859
<
template
>
<div
class=
"Dashboard"
>
<a-layout
style=
"padding: 24px 0; background: #fff"
>
<h1>
默认入口页面
</h1>
<h1>
默认入
123123
口页面
</h1>
</a-layout>
</div>
</
template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment