Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAMOSIotView
Project
Project
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
iot
YeeAMOSIotView
Commits
ae50f225
Commit
ae50f225
authored
Nov 25, 2020
by
高东东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改网络请求头设置
parent
b60a54d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
processor.js
lib/utils/processor.js
+3
-3
processor.js
src/utils/processor.js
+1
-1
No files found.
lib/utils/processor.js
View file @
ae50f225
...
...
@@ -39,8 +39,8 @@ function _interopRequireWildcard(e) {
var
t
=
_getRequireWildcardCache
();
if
(
t
&&
t
.
has
(
e
))
return
t
.
get
(
e
);
var
r
,
o
,
n
=
{},
u
=
Object
.
defineProperty
&&
Object
.
getOwnPropertyDescriptor
;
for
(
r
in
e
)
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
r
)
&&
((
o
=
u
?
Object
.
getOwnPropertyDescriptor
(
e
,
r
)
:
null
)
&&
(
o
.
get
||
o
.
set
)
?
Object
.
defineProperty
(
n
,
r
,
o
)
:
n
[
r
]
=
e
[
r
]);
i
=
Object
.
defineProperty
&&
Object
.
getOwnPropertyDescriptor
;
for
(
r
in
e
)
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
r
)
&&
((
o
=
i
?
Object
.
getOwnPropertyDescriptor
(
e
,
r
)
:
null
)
&&
(
o
.
get
||
o
.
set
)
?
Object
.
defineProperty
(
n
,
r
,
o
)
:
n
[
r
]
=
e
[
r
]);
return
n
.
default
=
e
,
t
&&
t
.
set
(
e
,
n
),
n
}
...
...
@@ -72,7 +72,7 @@ function _defineProperty(e, t, r) {
})
:
e
[
t
]
=
r
,
e
}
var
lsTool
=
_amosTool
.
Store
.
lsTool
,
defaultHeaders
=
{
defaultHeaders
=
window
.
isPluginsToAmos
?
window
.
requestInfo
.
staticHeader
:
{
appKey
:
"AMOS_IOT"
,
product
:
"AMOS_IOT_WEB"
},
...
...
src/utils/processor.js
View file @
ae50f225
...
...
@@ -8,7 +8,7 @@ import sysConsts from 'amos-processor/lib/config';
const
lsTool
=
Store
.
lsTool
;
const
defaultHeaders
=
{
const
defaultHeaders
=
window
.
isPluginsToAmos
?
window
.
requestInfo
.
staticHeader
:
{
appKey
:
'AMOS_IOT'
,
product
:
'AMOS_IOT_WEB'
};
...
...
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