Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
memberTag
memberTag-web
Commits
146e0aed
Commit
146e0aed
authored
Mar 23, 2020
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限变更
parent
3f04d67f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
70 deletions
+6
-70
index.html
index.html
+1
-1
api.js
src/api/api.js
+1
-65
login.vue
src/view/login/login.vue
+4
-4
No files found.
index.html
View file @
146e0aed
...
...
@@ -22,7 +22,7 @@
<!-- 公共组件引用 cdn -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/header.2.0.30.js"
></script>
<script
src=
"//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js"
></script>
<script
src=
"//web-1251519181.file.myqcloud.com/components/store-new.2.0.
40
.js"
></script>
<script
src=
"//web-1251519181.file.myqcloud.com/components/store-new.2.0.
51
.js"
></script>
<!-- <script src="//web-1251519181.file.myqcloud.com/components/datepicker.2.0.00.js"></script> -->
<script
src=
"//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js"
></script>
<script
src=
"//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js"
></script>
...
...
src/api/api.js
View file @
146e0aed
...
...
@@ -83,27 +83,6 @@ export const postRequest = (url, params) => {
method
:
'post'
,
url
:
`
${
local
}
/gic-member-tag-web
${
url
}
`
,
data
:
qs
.
stringify
(
params
),
// params: params,
// paramsSerializer: function(params) {
// return QS.stringify(params, {arrayFormat: 'brackets'})
// },
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// console.log(data)
// data = JSON.stringify(data)
// return data;
// }],
// transformRequest: [
// function (data) { // 解决传递数组变成对象的问题
// Object.keys(data).forEach((key) => {
// if ((typeof data[key]) === 'object') {
// data[key] = JSON.stringify(data[key]) // 这里必须使用内置JSON对象转换
// }
// })
// data = qs.stringify(data) // 这里必须使用qs库进行转换
// return data
// }
// ],
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
}
//multipart/form-data{"token": token}
});
};
...
...
@@ -115,28 +94,6 @@ export const postJsonRequest = (url, params) => {
url
:
`
${
local
}
/gic-member-tag-web
${
url
}
`
,
data
:
'{}'
,
params
:
params
,
// paramsSerializer: function(params) {
// return QS.stringify(params, {arrayFormat: 'brackets'})
// },
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// console.log(data)
// data = JSON.stringify(data)
// return data;
// }],
// transformRequest: [
// function (data) { // 解决传递数组变成对象的问题
// Object.keys(data).forEach((key) => {
// if ((typeof data[key]) === 'object') {
// data[key] = JSON.stringify(data[key]) // 这里必须使用内置JSON对象转换
// }
// })
// data = qs.stringify(data) // 这里必须使用qs库进行转换
// return data
// }
// ],
// withCredentials: true,
// credentials: 'same-origin',
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
//multipart/form-data{"token": token}
});
};
...
...
@@ -173,27 +130,6 @@ export const postForm = (url, params) => {
method
:
'post'
,
url
:
`
${
local
}
/gic-member-tag-web
${
url
}
`
,
data
:
params
,
// params: params,
// paramsSerializer: function(params) {
// return QS.stringify(params, {arrayFormat: 'brackets'})
// },
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// console.log(data)
// data = JSON.stringify(data)
// return data;
// }],
// transformRequest: [
// function (data) { // 解决传递数组变成对象的问题
// Object.keys(data).forEach((key) => {
// if ((typeof data[key]) === 'object') {
// data[key] = JSON.stringify(data[key]) // 这里必须使用内置JSON对象转换
// }
// })
// data = qs.stringify(data) // 这里必须使用qs库进行转换
// return data
// }
// ],
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
//'content-type': 'application/x-www-form-urlencoded'multipart/form-data{"token": token}
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
});
};
src/view/login/login.vue
View file @
146e0aed
...
...
@@ -42,9 +42,9 @@ export default {
redirect
:
this
.
$route
.
query
.
redirect
,
token
:
''
,
form
:
{
loginName
:
'
damogic
'
,
password
:
'
1
'
,
eid
:
'ff808081
593917d90159398ec6340012
'
loginName
:
'
HAZZYS
'
,
password
:
'
EA48576F30BE1669971699C09AD05C94
'
,
eid
:
'ff808081
6494494b0164a76b553a00e5
'
}
};
},
...
...
@@ -73,7 +73,7 @@ export default {
qs
.
stringify
({
loginName
:
this
.
form
.
loginName
,
password
:
this
.
form
.
password
,
eid
:
'ff808081
593917d90159398ec6340012
'
eid
:
'ff808081
6494494b0164a76b553a00e5
'
})
)
.
then
(
res
=>
{
...
...
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