mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
fix: 页内菜单带参互相跳转,标签没有选中高亮
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
defineOptions({
|
||||
name: "Menu1-2-2"
|
||||
@@ -8,6 +9,7 @@ defineOptions({
|
||||
|
||||
const input = ref("");
|
||||
const { t } = useI18n();
|
||||
const { query } = useRoute();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -16,5 +18,9 @@ const { t } = useI18n();
|
||||
<p style="text-indent: 2em">{{ t("menus.hsmenu1-2") }}</p>
|
||||
<p style="text-indent: 4em">{{ t("menus.hsmenu1-2-2") }}</p>
|
||||
<el-input v-model="input" />
|
||||
|
||||
<div class="mt-4" v-if="query.text">
|
||||
此页面携带的参数值为:{{ query.text }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user