Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-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
gzga-jzapi
apaas-ui
Commits
4451a0d0
Commit
4451a0d0
authored
May 26, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
连接api外部接口
parent
1f8cc854
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
10 deletions
+22
-10
src/request/api.js
src/request/api.js
+4
-0
src/request/api/service_shop.js
src/request/api/service_shop.js
+8
-0
src/request/api/user.js
src/request/api/user.js
+8
-0
src/request/api/workbench.js
src/request/api/workbench.js
+0
-1
src/request/http.js
src/request/http.js
+2
-9
No files found.
src/request/api.js
View file @
4451a0d0
import
workbench
from
'
@/request/api/workbench
'
;
import
serviceShop
from
'
@/request/api/service_shop
'
;
import
user
from
'
@/request/api/user
'
;
export
default
{
workbench
,
serviceShop
,
user
}
\ No newline at end of file
src/request/api/service_shop.js
View file @
4451a0d0
import
axios
from
'
@/request/http
'
;
// 导入http中创建的axios实例
import
qs
from
'
qs
'
;
// 根据需求是否导入qs模块
const
serviceShop
=
{
}
export
default
serviceShop
;
src/request/api/user.js
View file @
4451a0d0
import
axios
from
'
@/request/http
'
;
// 导入http中创建的axios实例
import
qs
from
'
qs
'
;
// 根据需求是否导入qs模块
const
user
=
{
}
export
default
user
;
src/request/api/workbench.js
View file @
4451a0d0
...
...
@@ -2,7 +2,6 @@ import axios from '@/request/http'; // 导入http中创建的axios实例
import
qs
from
'
qs
'
;
// 根据需求是否导入qs模块
const
workbench
=
{
// 新闻列表
fwzcFwcs
(
params
)
{
return
axios
.
post
(
`/apaas/service/v3/service/manager/test`
,
params
);
},
...
...
src/request/http.js
View file @
4451a0d0
...
...
@@ -6,15 +6,8 @@ import axios from 'axios';
import
router
from
'
../router
'
;
import
store
from
'
../store/index
'
;
/**
* 提示函数
* 禁止点击蒙层、显示一秒后关闭
*/
const
tip
=
msg
=>
{
this
.
$message
({
message
:
msg
,
type
:
'
warning
'
});
console
.
log
(
msg
)
}
/**
...
...
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