fix: 图表未显示问题

This commit is contained in:
xiaoxian521
2021-06-22 09:58:55 +08:00
parent f8fde9107b
commit 6a89af382f
4 changed files with 144 additions and 104 deletions

View File

@@ -19,8 +19,29 @@ import { setConfig, getConfig } from "./config";
import axios from "axios";
const app = createApp(App);
app.config.globalProperties.$config = getConfig();
// 响应式storage
import Storage from "responsive-storage";
app.use(Storage, {
routesInStorage: {
type: String,
default: Storage.getData(undefined, "routesInStorage") ?? [
{
path: "/welcome",
meta: {
title: "message.hshome",
icon: "el-icon-s-home",
showLink: true,
savedPosition: false,
},
},
],
},
});
// 获取项目动态全局配置
export const getServerConfig = async (): Promise<any> => {
return axios({