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
4e821483
Commit
4e821483
authored
Sep 02, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 测试分享url
parent
40b93242
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
http.js
src/service/http.js
+2
-2
wxJsSdk.js
src/service/wxJsSdk.js
+1
-1
No files found.
src/service/http.js
View file @
4e821483
//引入axios
//引入axios
//
import store from "@/store";
import
store
from
"
@/store
"
;
import
router
from
"
@/router
"
;
import
router
from
"
@/router
"
;
import
axios
from
"
axios
"
;
import
axios
from
"
axios
"
;
import
cherry
from
"
@qg/cherry-ui
"
;
import
cherry
from
"
@qg/cherry-ui
"
;
...
@@ -45,7 +45,7 @@ function afterRequest() {
...
@@ -45,7 +45,7 @@ function afterRequest() {
function
clearRequest
()
{
function
clearRequest
()
{
reqNum
--
;
reqNum
--
;
if
(
reqNum
<=
0
)
{
if
(
reqNum
<=
0
)
{
//
store.dispatch("setIsLoading", false);
store
.
dispatch
(
"
setIsLoading
"
,
false
);
}
}
}
}
...
...
src/service/wxJsSdk.js
View file @
4e821483
...
@@ -20,7 +20,7 @@ export async function setShare({
...
@@ -20,7 +20,7 @@ export async function setShare({
url
=
window
.
location
.
origin
,
url
=
window
.
location
.
origin
,
imgUrl
=
""
imgUrl
=
""
})
{
})
{
const
currentUrl
=
encodeURIComponent
(
location
.
href
.
split
(
"
#
"
)[
0
])
;
const
currentUrl
=
location
.
href
.
split
(
"
#
"
)[
0
]
;
const
res
=
await
getwxAuth
({
const
res
=
await
getwxAuth
({
appId
:
cfg
.
wxAppId
,
appId
:
cfg
.
wxAppId
,
url
:
currentUrl
url
:
currentUrl
...
...
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