Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-manager-ui
Commits
ae9e71a7
Commit
ae9e71a7
authored
May 10, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改post提交对象包装
parent
83afc5db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/assets/utils/ajax.js
src/assets/utils/ajax.js
+1
-1
No files found.
src/assets/utils/ajax.js
View file @
ae9e71a7
...
@@ -83,7 +83,7 @@ instance.interceptors.response.use(response=>{
...
@@ -83,7 +83,7 @@ instance.interceptors.response.use(response=>{
export
function
post
(
url
,
option
,
config
=
{})
{
export
function
post
(
url
,
option
,
config
=
{})
{
//判断object是数组还是对象
//判断object是数组还是对象
if
(
Object
.
getPrototypeOf
(
option
)
===
Array
.
prototype
){
if
(
Array
.
isArray
(
option
)
){
return
instance
.
post
(
url
,
option
,
config
)
return
instance
.
post
(
url
,
option
,
config
)
}
}
const
data
=
Object
.
assign
({},
option
,
{
const
data
=
Object
.
assign
({},
option
,
{
...
...
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