Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
91e0176e
authored
May 18, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
c4bef471
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
src/ajax/index.js
src/components/menu.vue
view/js/app.js
src/ajax/index.js
View file @
91e0176e
...
@@ -45,9 +45,9 @@ export const http = (method, url, param,loading) => {
...
@@ -45,9 +45,9 @@ export const http = (method, url, param,loading) => {
};
};
// post请求时需要设定Content-Type
// post请求时需要设定Content-Type
if
(
method
==
=
'post
'
)
{
if
(
method
==
'post'
||
method
==
'POST
'
)
{
config
.
data
=
param
;
config
.
data
=
param
;
}
else
if
(
method
===
'get'
)
{
}
else
if
(
method
===
'get'
||
method
==
'GET'
)
{
config
.
params
=
param
;
config
.
params
=
param
;
}
}
return
axios
(
config
);
return
axios
(
config
);
...
...
src/components/menu.vue
View file @
91e0176e
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
this
.
tabss
(
key
)
this
.
tabss
(
key
)
},
},
logout
()
{
logout
()
{
this
.
$http
(
'
POST
'
,
"/auth/logout"
).
then
(
res
=>
{
this
.
$http
(
'
post
'
,
"/auth/logout"
).
then
(
res
=>
{
Util
.
delCookie
(
'token'
);
Util
.
delCookie
(
'token'
);
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
window
.
location
.
href
=
'/#/login'
;
window
.
location
.
href
=
'/#/login'
;
...
...
view/js/app.js
View file @
91e0176e
This diff is collapsed.
Click to expand it.
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