|
@@ -39,28 +39,22 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mapActions, mapState } from 'vuex';
|
|
|
export default {
|
|
|
name: 'native',
|
|
|
props: {},
|
|
|
components: {},
|
|
|
data: () => ({
|
|
|
activeIndex2: '',
|
|
|
- menu:[],
|
|
|
}),
|
|
|
- created() {
|
|
|
- this.getMenu();
|
|
|
+ created() {},
|
|
|
+ computed: {
|
|
|
+ ...mapState(['menu']),
|
|
|
},
|
|
|
- computed: {},
|
|
|
methods: {
|
|
|
handleSelect(key, keyPath) {
|
|
|
console.log(key, keyPath);
|
|
|
},
|
|
|
- getMenu(){
|
|
|
- let menu = sessionStorage.getItem('menu');
|
|
|
- if(menu) {
|
|
|
- this.$set(this, `menu`, JSON.parse(menu));
|
|
|
- }
|
|
|
- },
|
|
|
turnTo(url) {
|
|
|
window.open(url);
|
|
|
},
|