hookehuyr

fix: 移除未使用的ElMessage导入并修复目标路径判断

修复目标路径判断逻辑,确保在page_target存在时不显示"前往"按钮
移除项目中未使用的ElMessage全局导入
{
"globals": {
"EffectScope": true,
"ElMessage": true,
"computed": true,
"createApp": true,
"customRef": true,
......
......@@ -2,7 +2,6 @@
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
const ElMessage: typeof import('element-plus/es')['ElMessage']
const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef']
......
<!--
* @Date: 2024-09-15 22:08:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-07 10:32:26
* @LastEditTime: 2025-08-07 11:13:12
* @FilePath: /map-demo/src/views/bieyuan/info.vue
* @Description: 文件描述
-->
......@@ -30,7 +30,7 @@
<van-icon v-if="!audio_list_height" name="https://cdn.ipadbiz.cn/bieyuan/map/icon/%E8%AF%AD%E9%9F%B31@3x.png" size="1.65rem" />
<van-icon v-else name="https://cdn.ipadbiz.cn/bieyuan/map/icon/%E8%AF%AD%E9%9F%B32@3x.png" size="1.65rem" />
</div>
<div v-if="page_details.path?.length > 1" @click="goTo()" class="info-btn">前往</div>
<div v-if="page_details.path?.length > 1 && !page_target" @click="goTo()" class="info-btn">前往</div>
</div>
</div>
<div class="info-sub-title">{{ page_details.note }}</div>
......@@ -316,9 +316,9 @@ const goTo = () => { // 打开标记地图显示
const goBack = () => { // 返回首页
const target = page_target.value;
if (target === 'xys') {
if (target) {
$router.push({
path: '/xys',
path: '/' + target,
query: {
id: $route.query.id,
}
......