Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4cdd4e67
authored
Nov 03, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
a6768fec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
src/api/ssoApi.js
src/main.js
src/api/ssoApi.js
View file @
4cdd4e6
const
{
http
}
=
window
.
$HTTP
export
default
{
export
default
{
/**OAuth2授权登陆 */
/**OAuth2授权登陆 */
login
(
data
)
{
login
(
data
)
{
data
.
returnAll
=
true
data
.
returnAll
=
true
data
.
method
=
'scrm.api.sso.ww.oauth.login'
data
.
method
=
'scrm.api.sso.ww.oauth.login'
return
http
({
data
})
return
window
.
$HTTP
({
data
})
},
},
/** 选择登录账号 */
/** 选择登录账号 */
selectAccount
(
data
)
{
selectAccount
(
data
)
{
data
.
returnAll
=
true
data
.
returnAll
=
true
data
.
method
=
'scrm.api.sso.user.login.select'
data
.
method
=
'scrm.api.sso.user.login.select'
return
http
({
data
})
return
window
.
$HTTP
({
data
})
}
}
}
}
\ No newline at end of file
\ No newline at end of file
src/main.js
View file @
4cdd4e6
...
@@ -16,13 +16,12 @@ import router from './router'
...
@@ -16,13 +16,12 @@ import router from './router'
import
store
from
'./store'
import
store
from
'./store'
import
api
from
'./api'
import
api
from
'./api'
import
{
fetchConfig
,
cfg
}
from
'@/config'
import
{
fetchConfig
,
cfg
}
from
'@/config'
import
{
axsinit
}
from
'./plugins/axios'
import
'@/assets/css/index.scss'
import
'@/assets/css/index.scss'
import
{
bus
,
tools
,
store
as
local
}
from
'./utils'
import
{
bus
,
tools
,
store
as
local
}
from
'./utils'
import
'./utils/util'
import
'./utils/util'
import
'components'
import
'components'
import
{
components
}
from
'@/plugins/vant'
import
{
components
}
from
'@/plugins/vant'
import
{
H
TTP
}
from
'glsx-common'
import
{
H
ttp
}
from
'glsx-common'
components
.
forEach
(
component
=>
Vue
.
use
(
component
))
components
.
forEach
(
component
=>
Vue
.
use
(
component
))
Vue
.
prototype
.
api
=
api
Vue
.
prototype
.
api
=
api
Vue
.
prototype
.
bus
=
bus
Vue
.
prototype
.
bus
=
bus
...
@@ -48,7 +47,7 @@ fetchConfig(!isMock).then(res => {
...
@@ -48,7 +47,7 @@ fetchConfig(!isMock).then(res => {
// 从配置服务器获取动态配置
// 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn
// 设置 js中可以访问 $cdn
Vue
.
use
(
cfg
)
Vue
.
use
(
cfg
)
window
.
$Http
=
new
H
TTP
({...
res
})
window
.
$Http
=
new
H
ttp
({...
res
})
window
.
vm
=
new
Vue
({
window
.
vm
=
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
router
,
router
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment