Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a6cc4fec
authored
Jun 11, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
be7cbaca
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
src/views/common/wxShare.vue
view/3.js
src/views/common/wxShare.vue
View file @
a6cc4fec
...
...
@@ -68,22 +68,22 @@
},
created
()
{
//无需登录的情况下
let
href
=
window
.
location
.
href
;
if
(
href
.
indexOf
(
'groupmessage'
)
>
-
1
||
href
.
indexOf
(
'singlemessage'
)
>
-
1
||
href
.
indexOf
(
'timeline'
)
>
-
1
){
href
=
href
.
replace
(
/
\?
from=
(
groupmessage|singlemessage|timeline
)(\S
*
)
#/
,
'#'
);
//
let href = window.location.href;
//
if(href.indexOf('groupmessage') > -1 || href.indexOf('singlemessage') > -1 || href.indexOf('timeline') > -1){
//
href = href.replace(/\?from=(groupmessage|singlemessage|timeline)(\S*)#/, '#');
}
//
}
if
(
!
this
.
isLogin
)
{
this
.
$store
.
dispatch
({
type
:
"wxShare"
,
current_url
:
href
current_url
:
location
.
href
.
split
(
'#'
)[
0
]
});
}
else
{
if
(
util
.
getCookie
(
"Yo4teW_uid"
))
{
this
.
$store
.
dispatch
({
type
:
"wxShare"
,
current_url
:
href
current_url
:
location
.
href
.
split
(
'#'
)[
0
]
});
}
}
...
...
view/3.js
View file @
a6cc4fec
This diff is collapsed.
Click to expand it.
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