Files
shanghaigangxiangtuzhuangVUE/src/App.vue

31 lines
492 B
Vue
Raw Normal View History

2023-11-14 18:09:40 +08:00
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
import { mapGetters } from "vuex";
export default {
name: "App",
computed: {
...mapGetters(["token"]),
},
watch: {
token: {
handler: function (val) {
if (val) {
2023-12-01 15:38:15 +08:00
this.signalr.start(); //todo 如果token发生更替 重启signal
2023-11-14 18:09:40 +08:00
}
},
deep: true,
immediate: true,
},
},
};
</script>
2024-03-11 11:26:56 +08:00
<style lang="stylus">
@import "./style/base.styl"
</style>