do not connect to socket io for status page

This commit is contained in:
LouisLam 2021-09-11 16:22:30 +08:00
parent 08c7a37052
commit 4b0a8087a2
3 changed files with 222 additions and 152 deletions

36
src/pages/StatusPage.vue Normal file
View file

@ -0,0 +1,36 @@
<template>
<button v-if="hasToken" @click="edit">
<font-awesome-icon icon="edit" />
</button>
</template>
<script>
import { useToast } from "vue-toastification"
const toast = useToast()
export default {
data() {
return {
hasToken: false,
}
},
computed: {
},
watch: {
},
created() {
this.hasToken = ("token" in localStorage);
},
mounted() {
},
methods: {
edit() {
console.log("here");
this.$root.initSocketIO(true);
}
},
}
</script>