Files
zyplayer-doc/zyplayer-doc-ui/wiki-ui/src/App.vue

58 lines
1.1 KiB
Vue
Raw Normal View History

<template>
2023-01-11 20:33:42 +08:00
<router-view></router-view>
</template>
2023-01-11 20:33:42 +08:00
<script setup>
import {onBeforeUnmount, ref, onMounted, watch, defineProps, nextTick, defineEmits, defineExpose, computed} from 'vue';
import {onBeforeRouteUpdate, useRouter, useRoute} from "vue-router";
2024-12-09 22:14:51 +08:00
import {ElMessageBox, ElMessage} from 'element-plus';
2024-12-06 23:08:32 +08:00
import systemApi from "@/assets/api/system";
import {useStoreUserData} from "@/store/userData";
let storeUser = useStoreUserData();
onMounted(() => {
checkSystemUpgrade();
});
const checkSystemUpgrade = () => {
systemApi.systemUpgradeInfo({}).then((json) => {
storeUser.upgradeInfo = json.data || {};
});
}
</script>
<style>
2023-01-11 20:33:42 +08:00
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
2023-01-11 20:33:42 +08:00
#app,
.el-container,
.el-menu {
height: 100%;
}
::-webkit-scrollbar {
2024-12-06 22:46:50 +08:00
height: 11px;
width: 11px !important;
background-color: unset !important;
2023-01-11 20:33:42 +08:00
}
::-webkit-scrollbar-thumb {
2024-12-06 22:46:50 +08:00
cursor: pointer;
border-radius: 11px;
border-style: dashed;
border-color: transparent;
border-width: 3px;
background-color: rgba(173, 180, 195, 0.4);
background-clip: padding-box;
2023-01-11 20:33:42 +08:00
}
2024-12-06 22:46:50 +08:00
::-webkit-scrollbar-thumb:hover {
background: rgba(173, 180, 195, 0.5);
2023-01-11 20:33:42 +08:00
}
</style>