4279e5fc by renchao@pashanhoo.com

style:数据上报

1 parent 8a640b55
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-27 14:09:57
* @LastEditTime: 2023-05-11 16:38:29
-->
<template>
<div>
......@@ -9,7 +9,7 @@
<el-menu router :default-active="activeMenu" :background-color="variables.menuBg" :text-color="variables.menuText"
:unique-opened="true" :active-text-color="variables.menuActiveText" :collapse-transition="false" mode="vertical">
<!-- 权限菜单 -->
<sidebar-item v-for="route in permission_routes.slice(5)" :key="route.path" :item="route"
<sidebar-item v-for="route in permission_routes.slice(4)" :key="route.path" :item="route"
:base-path="route.path" />
<!-- 菜单全部展示 -->
<!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> -->
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-11 16:25:43
* @LastEditTime: 2023-05-11 16:33:18
*/
import Vue from 'vue'
export default function getTheme (theme = Vue.prototype.BASE_API.THEME) {
const resultMap = {
'sb': function () {
return import("@/styles/sbPublic.scss");
},
'default': function () {
throw new Error(`Unsupported theme: ${theme}`);
},
};
const result = resultMap[theme]();
if (result instanceof Promise) {
return result;
} else {
return resultMap.default();
}
export default function getTheme () {
import("@/styles/sbPublic.scss");
}
\ No newline at end of file
......