Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-09-25 17:15:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f98f604f5e1987c3b11ee7e3545010cbe72663e2
f98f604f
1 parent
e1c5de11
fix 详情页返回首页
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
src/views/bieyuan/info.vue
src/views/bieyuan/info.vue
View file @
f98f604
<!--
* @Date: 2024-09-15 22:08:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-25 1
4:07:44
* @LastEditTime: 2024-09-25 1
7:10:16
* @FilePath: /map-demo/src/views/bieyuan/info.vue
* @Description: 文件描述
-->
...
...
@@ -193,6 +193,7 @@ onMounted(async () => {
showImagePreview({
images: [$(img).attr('src')],
startPosition: 0,
showIndex: false,
onClose: () => {
// console.log('close');
}
...
...
@@ -243,8 +244,13 @@ const goTo = () => { // 打开标记地图显示
}
}
const goBack = () => {
$router.go(-1);
const goBack = () => { // 返回首页
$router.push({
path: '/bieyuan/map',
query: {
id: $route.query.id,
}
})
}
const showBack = computed(() => $router.currentRoute.value.path === '/bieyuan/info');
...
...
@@ -273,6 +279,7 @@ const clickTab = (evt) => { // 标签切换
showImagePreview({
images: [$(img).attr('src')],
startPosition: 0,
showIndex: false,
onClose: () => {
// console.log('close');
}
...
...
Please
register
or
login
to post a comment