fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<template>
  <div id="app">
    <div id="nav">
      <!-- <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> -->
    </div>
    <router-view/>
  </div>
</template>
<script>
import action from '@/utils/qkAction.js'
export default {
  mounted () {
    // 实时接受父应用传过来的数据
    action.onGlobalStateChange((state) => {
      this.$store.commit('setBtnStyle', state)
    }, true)
  }
}
</script>
<style scoped>
</style>