Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
b5c21698
Commit
b5c21698
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 分享调试
parent
becf339b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
shareInfo.js
src/api/shareInfo.js
+1
-1
wxJsSdk.js
src/service/wxJsSdk.js
+2
-2
index.vue
src/views/Home/index.vue
+7
-0
No files found.
src/api/shareInfo.js
View file @
b5c21698
import
{
setShare
}
from
"
@/service/wxJsSdk
"
;
import
{
setShare
}
from
"
@/service/wxJsSdk
"
;
const
currentOrigin
=
window
.
location
.
origin
;
const
currentOrigin
=
window
.
location
.
origin
+
"
?share=
"
;
const
logo
=
currentOrigin
+
"
/shareImg/index.png
"
;
const
logo
=
currentOrigin
+
"
/shareImg/index.png
"
;
const
shareList
=
{
const
shareList
=
{
home
:
{
home
:
{
...
...
src/service/wxJsSdk.js
View file @
b5c21698
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Description: weixin-js-sdk
* @Description: weixin-js-sdk
* @LastEditors: gzw
* @LastEditors: gzw
* @Date: 20120-08-30 18:40:11
* @Date: 20120-08-30 18:40:11
* @LastEditTime: 2020-09-01 19:
27:35
* @LastEditTime: 2020-09-01 19:
40:04
*/
*/
import
cfg
from
"
@/config/index
"
;
import
cfg
from
"
@/config/index
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
...
@@ -17,7 +17,7 @@ import localStorage from "@/service/localStorage";
...
@@ -17,7 +17,7 @@ import localStorage from "@/service/localStorage";
export
async
function
setShare
({
export
async
function
setShare
({
title
=
""
,
title
=
""
,
desc
=
""
,
desc
=
""
,
link
=
window
.
location
.
href
,
link
=
window
.
location
.
origin
,
imgUrl
=
""
imgUrl
=
""
})
{
})
{
// console.log(title, desc, link, imgUrl);
// console.log(title, desc, link, imgUrl);
...
...
src/views/Home/index.vue
View file @
b5c21698
...
@@ -153,6 +153,13 @@ export default {
...
@@ -153,6 +153,13 @@ export default {
computed
:
{
computed
:
{
...
mapState
([
"
isShowLogin
"
])
...
mapState
([
"
isShowLogin
"
])
},
},
created
()
{
let
_path
=
this
.
$route
.
query
;
if
(
_path
)
{
_path
=
"
/
"
+
decodeURIComponent
(
_path
);
this
.
$router
.
replace
(
_path
);
}
},
async
mounted
()
{
async
mounted
()
{
this
.
getList
();
this
.
getList
();
if
(
this
.
mongoToken
)
{
if
(
this
.
mongoToken
)
{
...
...
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