wangziqian 4 gadi atpakaļ
vecāks
revīzija
efb8894c82
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/components/click/overClick.vue

+ 2 - 1
src/components/click/overClick.vue

@@ -79,7 +79,8 @@ export default {
     },
     link() {
       if (this.parameter) {
-        this.$router.push(this.parameter)
+        const newTab = this.$router.resolve(this.parameter)
+        window.open(newTab.href, '_blank')
       }
     }
   }