Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 f45bb650
authored
Apr 29, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
注册新组建
1 parent
367e8ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
src/setup/qiankun.js
src/setup/qiankun.js
View file @
f45bb65
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
message
}
from
'@/plugins/element.js'
import
{
message
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
{
GLButton
,
GLTable
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLButton
,
GLTable
,
GLCombiForm
,
GLTableButton
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
import
render
from
'./render'
import
'glsx-components/dist/glsx-components.css'
import
'glsx-components/dist/glsx-components.css'
let
routes
=
[]
let
routes
=
[]
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLTableButton
)
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
//request.baseURL = 'https://scrm.test.glsx.com.cn/rop-scrm-equity/router'
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
@@ -21,7 +25,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
...
@@ -21,7 +25,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
// routes = getRoutes({ name, id, routesData })
// routes = getRoutes({ name, id, routesData })
routes
=
getRoutes
(
routesData
)
routes
=
getRoutes
(
routesData
)
subscribe
({
messenger
})
subscribe
({
messenger
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
}
}
export
async
function
mount
(
props
)
{
export
async
function
mount
(
props
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
const
insts
=
render
(
props
.
routerBase
,
routes
)
...
...
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