|
|
@@ -157,7 +157,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { mapGetters } from 'vuex';
|
|
|
+import { mapGetters ,mapActions} from 'vuex';
|
|
|
import cardName from './components/card-name';
|
|
|
import detailDraw from './components/detail-draw';
|
|
|
export default {
|
|
|
@@ -212,9 +212,13 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
// this.$store.dispatch('getLevel');
|
|
|
+ this.getLevel()
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
+ ...mapActions([
|
|
|
+ 'getLevel',
|
|
|
+ ]),
|
|
|
handleClick(tab, e) {
|
|
|
console.log(tab, e);
|
|
|
this.app.refresh({ type: this.tabIndex });
|