沈丘营商办后台前端项目
王恒
5 天以前 4ebc73199bcd4b23739a2e1d22c372e8081310c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
  <router-view />
</template>
 
<script setup lang="ts">
import useSettingsStore from "@/store/modules/settings";
import useMenuStore from "@/store/modules/menu"; //菜单
import { handleThemeStyle, handleMenuStyle, handleFontStyle } from "@/utils/theme";
// import { webSockHelper, useType } from "@/plugins/webSockHelper";
// import useUserStore from "@/store/modules/user";
// const userStore = useUserStore();
// const { userId } = toRefs(userStore);
// let websock = new webSockHelper(useType.LCON, "192.168.1.126:8089", userStore.userId);
onMounted(() => {
  // console.log("---------->", userId);
 
  // console.log("=========>", websock);
 
  nextTick(() => {
    // let userid = useUserStore().userId;
    // console.log("userStore.userId==>admin", userid);
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme);
    //初始化菜单主题样式
    handleMenuStyle(useMenuStore().menuColors);
    //初始化字体
    handleFontStyle(useSettingsStore().font);
  });
});
</script>
<style>
/* ---滚动条公共样式--- */
 
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}
 
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0); /*轨道阴影*/
  border-radius: 0px; /*轨道背景区域的圆角*/
  background-color: transparent; /*轨道的背景颜色*/
}
 
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 4px; /*滑块圆角*/
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); /*滑块外阴影*/
  background-color: rgb(180, 184, 185, 0.6); /*滑块背景颜色*/
}
.Fragment{
  line-height: 0px;
}
</style>