Browse Source

修改实现方式

wolyshaw 4 years ago
parent
commit
52113f29cf
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/layout/components/Sidebar/Link.vue

+ 1 - 5
src/layout/components/Sidebar/Link.vue

@@ -1,7 +1,7 @@
 
 <template>
   <!-- eslint-disable vue/require-component-is -->
-  <component v-bind="linkProps(to)" @click.native="linkClick(to)">
+  <component v-bind="linkProps(to)">
     <slot />
   </component>
 </template>
@@ -17,10 +17,6 @@ export default {
     }
   },
   methods: {
-    linkClick(url) {
-      const searchs = new Searchs(url)
-      searchs.removeByKey(url)
-    },
     linkProps(url) {
       if (isExternal(url)) {
         return {