Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
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
quantum-blocks
Commits
db2f4170
Commit
db2f4170
authored
Nov 17, 2022
by
徐光星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 预览增加参数,以便区分h5打开和h5预览,显示抢购组件和搜索框
parent
59eb817a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
index.ts
app/web/page/editor/view/dashboard/index.ts
+1
-1
index.vue
app/web/page/editor/view/pageList/index.vue
+1
-1
package.json
package.json
+1
-1
No files found.
app/web/page/editor/view/dashboard/index.ts
View file @
db2f4170
...
...
@@ -122,7 +122,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
// 清除新增数据时的缓存
if
(
!
isCreate
)
{
this
.
removeDefaultCache
();
}
if
(
type
===
'
preview
'
)
{
window
.
open
(
`
${
config
.
h5Host
}
/activity/
${
this
.
uuid
}
?tenantId=
${
this
.
pageInfo
.
tenantId
}
`
);
window
.
open
(
`
${
config
.
h5Host
}
/activity/
${
this
.
uuid
}
?tenantId=
${
this
.
pageInfo
.
tenantId
}
&isPreview=1
`
);
}
else
{
this
.
$Notice
.
success
({
title
:
'
保存成功!
'
});
}
...
...
app/web/page/editor/view/pageList/index.vue
View file @
db2f4170
...
...
@@ -123,7 +123,7 @@ export default {
},
on
:
{
click
:
()
=>
{
window
.
open
(
`
${
config
.
h5Host
}
/activity/
${
params
.
row
.
uuid
}
?tenantId=
${
params
.
row
.
tenantId
}
`
);
window
.
open
(
`
${
config
.
h5Host
}
/activity/
${
params
.
row
.
uuid
}
?tenantId=
${
params
.
row
.
tenantId
}
&isPreview=1
`
);
},
},
},
...
...
package.json
View file @
db2f4170
...
...
@@ -8,7 +8,7 @@
"test"
:
"cross-env NODE_ENV=production EGG_SERVER_ENV=sit egg-scripts start --port 80 --workers 1"
,
"stop"
:
"egg-scripts stop"
,
"backend"
:
"nohup egg-scripts start --port 7001 --workers 4"
,
"dev"
:
"cross-env NODE_ENV=test APOLLO_CLUSTER=k8s NAMESPACE=
yxm2
npm run apollo && egg-bin dev -r egg-ts-helper/register --port 7002"
,
"dev"
:
"cross-env NODE_ENV=test APOLLO_CLUSTER=k8s NAMESPACE=
ds
npm run apollo && egg-bin dev -r egg-ts-helper/register --port 7002"
,
"debug"
:
"egg-bin debug -r egg-ts-helper/register"
,
"apollo"
:
"node bin/apollo.js"
,
"build"
:
"npm run tsc && cross-env NODE_ENV=production APOLLO_CLUSTER=3C npm run apollo && cross-env COS_ENV=production easy build --devtool"
,
...
...
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