Fix: undefined component

This commit is contained in:
JimhHan
2021-03-25 23:30:08 +08:00
parent c58fabe474
commit 1d65a3ac9c
2 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -25,7 +25,6 @@
<script lang="ts">
import Vue from "vue";
import { Tab } from "bootstrap";
export default Vue.extend({
props: {
@@ -43,8 +42,9 @@ export default Vue.extend({
},
mounted() {
this.$nextTick(function() {
const bootstrap = require("bootstrap");
let triggerEl = document.getElementById(this.children["0"].$data.labelID);
new Tab(triggerEl).show();
new bootstrap.Tab(triggerEl).show();
});
},
computed: {