Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
5b1e39d9
Commit
5b1e39d9
authored
May 09, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpate: dist
parent
81da83fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
App.vue
src/App.vue
+1
-0
main.js
src/main.js
+17
-11
No files found.
src/App.vue
View file @
5b1e39d9
...
...
@@ -59,6 +59,7 @@ export default {
this
.
saveUserId
();
this
.
changeTab
();
this
.
$store
.
dispatch
(
'getIsShowSelfData'
);
// 展示是否显示 '仅看本人' btn 和列表展示创建人
console
.
log
(
this
.
$buttonCode
);
}
};
</
script
>
...
...
src/main.js
View file @
5b1e39d9
...
...
@@ -37,29 +37,35 @@ Vue.prototype.$tips = function({ message = '提示', type = 'success' }) {
let
instance
=
null
;
function
render
(
props
=
{})
{
const
{
container
}
=
props
;
instance
=
new
Vue
({
router
,
store
,
render
:
h
=>
h
(
App
)
}).
$mount
(
container
?
container
.
querySelector
(
'#app'
)
:
'#app'
);
}
// 独立运行时
if
(
!
window
.
__POWERED_BY_QIANKUN__
)
{
console
.
log
(
'独立运行'
);
limit
({
createApp
()
{
window
.
getLimit
(
router
,
'marketing'
,
'/marketing/'
).
then
(()
=>
{
instance
=
new
Vue
({
router
,
store
,
render
:
h
=>
h
(
App
)
}).
$mount
(
container
?
container
.
querySelector
(
'#app'
)
:
'#app'
);
render
();
});
}
});
}
// 独立运行时
if
(
!
window
.
__POWERED_BY_QIANKUN__
)
{
console
.
log
(
'独立运行'
);
render
();
}
export
async
function
bootstrap
()
{
console
.
log
(
'[vue] vue app bootstraped'
);
}
export
async
function
mount
(
props
)
{
render
();
limit
({
createApp
()
{
window
.
getLimit
(
router
,
'marketing'
,
'/marketing/'
).
then
(()
=>
{
render
();
});
}
});
}
export
async
function
unmount
()
{
instance
.
$destroy
();
...
...
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