Files
shgx_tz_mes_backend_sync/ZR.Vue/src/App.vue

28 lines
388 B
Vue
Raw Normal View History

2021-08-23 16:57:25 +08:00
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
2022-02-28 18:36:06 +08:00
import { mapGetters } from "vuex";
2021-12-10 12:03:32 +08:00
export default {
name: "App",
2022-02-28 18:36:06 +08:00
computed: {
...mapGetters(["token"]),
},
watch: {
token: {
handler: function (val) {
if (val) {
this.signalr.start();
}
},
deep: true,
immediate: true,
},
},
2021-12-10 12:03:32 +08:00
};
2021-08-23 16:57:25 +08:00
</script>