Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fff7d47c
authored
May 28, 2021
by
MichaelJier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
5d02e14e
62a13688
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
components/modules/shareBox/index.vue
+9
-4
components/view/index.vue
+1
-0
No files found.
components/modules/shareBox/index.vue
View file @
fff7d47c
...
@@ -39,12 +39,16 @@ export default {
...
@@ -39,12 +39,16 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$Bus
.
$on
(
'bus-showShare'
,
this
.
_toggleShare
);
this
.
$Bus
.
$on
(
'bus-showShare'
,
this
.
_toggleShare
);
if
(
UserAgent
.
isWx
())
{
this
.
$Bus
.
$on
(
'bus-initWX'
,
this
.
_initWXAll
);
this
.
_InitWXShare
();
this
.
_initWXAll
()
this
.
_getWxJsapiPackage
();
}
},
},
methods
:
{
methods
:
{
_initWXAll
()
{
if
(
UserAgent
.
isWx
())
{
this
.
_InitWXShare
();
this
.
_getWxJsapiPackage
();
}
},
updateQueryStringParameter
(
uri
,
key
,
value
)
{
updateQueryStringParameter
(
uri
,
key
,
value
)
{
if
(
!
value
)
{
if
(
!
value
)
{
return
uri
;
return
uri
;
...
@@ -131,6 +135,7 @@ export default {
...
@@ -131,6 +135,7 @@ export default {
},
},
beforeDestroy
()
{
beforeDestroy
()
{
this
.
$Bus
.
$off
(
'bus-showShare'
,
this
.
_toggleShare
);
this
.
$Bus
.
$off
(
'bus-showShare'
,
this
.
_toggleShare
);
this
.
$Bus
.
$off
(
'bus-initWX'
,
this
.
_initWXAll
);
}
}
};
};
</
script
>
</
script
>
...
...
components/view/index.vue
View file @
fff7d47c
...
@@ -73,6 +73,7 @@ export default {
...
@@ -73,6 +73,7 @@ export default {
}
}
this
.
$Bus
.
$on
(
'bus-showLogin'
,
this
.
_toggleLogin
);
this
.
$Bus
.
$on
(
'bus-showLogin'
,
this
.
_toggleLogin
);
await
this
.
get_userInfo
({
refererId
:
this
.
$route
.
query
.
refererId
});
await
this
.
get_userInfo
({
refererId
:
this
.
$route
.
query
.
refererId
});
this
.
$Bus
.
$emit
(
'bus-initWX'
);
this
.
set_nowDate
();
this
.
set_nowDate
();
if
(
!
process
.
env
.
private
)
{
if
(
!
process
.
env
.
private
)
{
this
.
timer
=
websocketHeartbeat
.
call
(
this
)
this
.
timer
=
websocketHeartbeat
.
call
(
this
)
...
...
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