Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 511c7a1e
authored
Aug 24, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
72623d22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
src/main.js
src/setup/qiankun.js
src/main.js
View file @
511c7a1
...
...
@@ -20,12 +20,6 @@ Vue.prototype.size = 'small'
Vue
.
prototype
.
defaultLabelWidth
=
'154px'
Vue
.
prototype
.
staticImgUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/'
Vue
.
prototype
.
$vip
=
'https://img01.glsx.com.cn/weapp/resource/miniprogram/expandedGold/vip.png'
try
{
const
loginpath
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_SESSION'
))?.
loginpath
if
(
loginpath
===
'/oss'
)
Vue
.
prototype
.
loginpath
=
true
}
catch
(
e
)
{
console
.
log
(
e
)
}
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
...
...
src/setup/qiankun.js
View file @
511c7a1
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-0
7-19 17:32:17
* @LastEditTime: 2023-0
8-24 10:12:25
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -24,6 +24,12 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
try
{
Vue
.
prototype
.
loginpath
=
globalState
.
loginList
[
0
].
products
[
0
].
productName
.
includes
(
'运营版'
)
}
catch
(
error
)
{
console
.
log
(
error
)
}
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
...
...
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