Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 92413679
authored
Mar 07, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉qunkun.js
1 parent
0868e3fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
src/setup/qiankun.js
src/setup/qiankun.js
View file @
9241367
...
@@ -10,13 +10,13 @@ let routes = []
...
@@ -10,13 +10,13 @@ let routes = []
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
// Vue.use(Table)
// Vue.use(Table)
// Vue.use(TableColumn)
// Vue.use(TableColumn)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request_brand
,
sign
,
secret
}
=
await
fetchConfig
()
const
{
response
,
request
,
request_brand
,
sign
,
secret
}
=
await
fetchConfig
()
// 本地切换域名,不需要Mock上面改动 const => let
// 本地切换域名,不需要Mock上面改动 const => let
request
.
baseURL
=
'https://scrm.dev.glsx.com.cn'
//
request.baseURL = 'https://scrm.dev.glsx.com.cn'
request_brand
.
baseURL
=
'https://scrm.dev.glsx.com.cn'
//
request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
@@ -24,11 +24,11 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -24,11 +24,11 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
//
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
//
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'3c50d4be-7211-45c1-a2c6-9792bbb3c0d9'
}
})
//
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '3c50d4be-7211-45c1-a2c6-9792bbb3c0d9' } })
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'3c50d4be-7211-45c1-a2c6-9792bbb3c0d9'
}
})
//
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '3c50d4be-7211-45c1-a2c6-9792bbb3c0d9' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
routes
=
getRoutes
(
routesData
)
subscribe
({
messenger
})
subscribe
({
messenger
})
...
...
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