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
a7ef6fa9
authored
May 19, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
e22a1ead
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
src/ajax/index.js
src/views/Store/list.vue
view/js/app.js
src/ajax/index.js
View file @
a7ef6fa9
...
...
@@ -29,7 +29,7 @@ switch (envs) {
export
const
http
=
(
method
,
url
,
param
,
loading
)
=>
{
axios
.
defaults
.
withCredentials
=
false
;
// 不
携带cookie
//axios.defaults.withCredentials = true; //
携带cookie
//loading 默认加载loading 传1 不加载
param
=
param
&&
typeof
param
===
'object'
?
param
:
{};
let
token
=
Util
.
getCookie
(
'token'
)
||
''
;
...
...
@@ -41,13 +41,13 @@ export const http = (method, url, param,loading) => {
}],
loading
:(
loading
?
false
:
true
)
};
param
.
token
=
token
//
if(url!="/auth/cp"&&url!="/auth/login"){
//
config.headers={
//
'Authorization': 'Bearer ' + token
//
}
//
param.token=token
if
(
url
!=
"/auth/cp"
&&
url
!=
"/auth/login"
){
config
.
headers
=
{
'Authorization'
:
'Bearer '
+
token
}
//
}
}
// post请求时需要设定Content-Type
if
(
method
==
'post'
||
method
==
'POST'
)
{
config
.
data
=
param
;
...
...
src/views/Store/list.vue
View file @
a7ef6fa9
...
...
@@ -429,7 +429,7 @@
var
self
=
this
;
for
(
var
i
=
0
;
i
<
self
.
kucundata
.
length
;
i
++
)
{
arr_
[
self
.
kucundata
[
i
][
'goods_id'
]]
=
{
cn_delivery_time
:
self
.
kucundata
[
i
][
'updateStock'
]
stock
:
self
.
kucundata
[
i
][
'updateStock'
]
}
console
.
log
(
self
.
kucundata
[
i
][
'goods_id'
])
}
...
...
view/js/app.js
View file @
a7ef6fa9
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