瀏覽代碼

mod: 删除无用代码

kailong321200875 1 年之前
父節點
當前提交
13c9300af2
共有 2 個文件被更改,包括 19 次插入1 次删除
  1. 0 1
      src/store/modules/tagsView.ts
  2. 19 0
      src/views/Function/MultipleTabsDemo2.vue

+ 0 - 1
src/store/modules/tagsView.ts

@@ -36,7 +36,6 @@ export const useTagsViewStore = defineStore('tagsView', {
     },
     // 新增tag
     addVisitedView(view: RouteLocationNormalizedLoaded) {
-      console.log(view)
       if (this.visitedViews.some((v) => v.path === view.path)) return
       if (view.meta?.noTagsView) return
       this.visitedViews.push(

+ 19 - 0
src/views/Function/MultipleTabsDemo2.vue

@@ -0,0 +1,19 @@
+<script setup lang="ts">
+import { ContentWrap } from '@/components/ContentWrap'
+import { ElInput } from 'element-plus'
+import { ref } from 'vue'
+import { useRoute } from 'vue-router'
+import { useTagsView } from '@/hooks/web/useTagsView'
+
+const { setTitle } = useTagsView()
+
+const { query } = useRoute()
+
+const val = ref(query.id as string)
+
+setTitle(`详情页query-${val.value}`)
+</script>
+
+<template>
+  <ContentWrap> 获取参数: <ElInput v-model="val" /> </ContentWrap>
+</template>