Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dd005f68
authored
Jun 03, 2025
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 不同环境,执行不同的history前缀
1 parent
78bb34e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
h5/src/router/index.js
h5/src/views/video/index.vue
h5/src/router/index.js
View file @
dd005f6
...
...
@@ -20,9 +20,9 @@ const routes = [
},
];
//
const isDev = process.env.NODE_ENV === "development";
const
isDev
=
process
.
env
.
NODE_ENV
===
"development"
;
const
router
=
createRouter
({
history
:
createWebHistory
(
"/appH5/
"
),
history
:
createWebHistory
(
!
isDev
?
"/apph5/"
:
"
"
),
routes
,
});
...
...
h5/src/views/video/index.vue
View file @
dd005f6
...
...
@@ -938,7 +938,7 @@ const pictureProcess = (imgUrl) => {
window
.
postMessage
(
params
,
'*'
);
uni
.
postMessage
(
params
,
'*'
);
/* if (paramObj.newLevel) {
wx.miniProgram.redirectTo({
wx.miniProgram.redirectTo({
*
url: `/pages/tour/inspectionDetail/index?action=capture&picUrl=${imgUrl}&id=${paramObj.tid}`,
});
} else {
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment