2025-06-19 09:43:36 +08:00
|
|
|
<template>
|
|
|
|
|
<div id="app">
|
|
|
|
|
<router-view />
|
|
|
|
|
<theme-picker />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import ThemePicker from "@/components/ThemePicker";
|
2025-07-04 15:38:41 +08:00
|
|
|
import Cookies from "js-cookie";
|
2025-06-19 09:43:36 +08:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "App",
|
|
|
|
|
components: { ThemePicker },
|
2025-07-04 15:38:41 +08:00
|
|
|
data(){
|
|
|
|
|
return{
|
|
|
|
|
b:false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
destroyed: function () { // 离开页面生命周期函数
|
|
|
|
|
this.$websocket.dispatch('websocket_close');
|
|
|
|
|
},
|
|
|
|
|
created () {
|
|
|
|
|
const username = Cookies.get('username')
|
2025-07-04 15:57:31 +08:00
|
|
|
this.$store.dispatch('websocket_init', process.env.VUE_APP_WEBSOCKET+username)
|
2025-07-04 15:38:41 +08:00
|
|
|
},
|
2025-06-19 09:43:36 +08:00
|
|
|
metaInfo() {
|
|
|
|
|
return {
|
|
|
|
|
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
|
|
|
|
|
titleTemplate: title => {
|
|
|
|
|
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
#app .theme-picker {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2025-06-26 15:49:52 +08:00
|
|
|
/deep/.dl-flex-column {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: start;
|
|
|
|
|
align-items: center
|
|
|
|
|
}
|
2025-07-04 17:29:32 +08:00
|
|
|
/deep/.dl-flex-column-center {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center
|
|
|
|
|
}
|
|
|
|
|
/deep/.dl-flex-column-center span{
|
|
|
|
|
padding-left: 3px;
|
|
|
|
|
}
|
|
|
|
|
/deep/.custom-class th{
|
|
|
|
|
background-color: rgba(240, 247, 255, 1) !important;
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
color: rgba(41, 43, 45, 1) !important;
|
|
|
|
|
border:none !important;
|
|
|
|
|
}
|
|
|
|
|
/deep/.custom-row-class td{
|
|
|
|
|
border-bottom: 1px dashed rgba(218, 218, 218, 1);
|
|
|
|
|
}
|
2025-06-19 09:43:36 +08:00
|
|
|
</style>
|