mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-25 21:57:48 +00:00
- 在任务类型、模型、接口和前端页面中新增 `start_date` 和 `end_date` 字段 - 优化任务调度逻辑,支持根据开始和结束时间设置任务的执行时间 - 前端新增间隔时间设置组件和 Cron 表达式选择器,提升用户体验 - 更新依赖包,引入 `element-plus` 和 `vue3-cron-plus-picker` 组件
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
import { createApp } from "vue";
|
|
import App from "./App.vue";
|
|
import router from "./router";
|
|
import Antd from "ant-design-vue";
|
|
import "ant-design-vue/dist/reset.css";
|
|
import VChart from "vue-echarts";
|
|
import "echarts";
|
|
import './style.css'
|
|
import { createPinia } from 'pinia';
|
|
import { useConfigStore } from "@/store/index";
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
|
const app = createApp(App);
|
|
const pinia = createPinia();
|
|
|
|
app.use(pinia);
|
|
// app.use(VueCron);
|
|
app.use(ElementPlus)
|
|
|
|
const initConfig = async () => {
|
|
const configStore = useConfigStore();
|
|
await configStore.getConfig();
|
|
|
|
const loginTitle = configStore.getConfigValue("title");
|
|
const loginLogo = configStore.getConfigValue("favicon");
|
|
|
|
if (loginTitle) {
|
|
document.title = loginTitle;
|
|
}
|
|
|
|
if (loginLogo) {
|
|
const favicon = document.querySelector('link[rel="icon"]');
|
|
if (favicon) {
|
|
favicon.href = loginLogo;
|
|
}
|
|
}
|
|
};
|
|
|
|
// 初始化配置并挂载应用
|
|
initConfig().then(() => {
|
|
app.use(router);
|
|
app.use(Antd);
|
|
app.component("VChart", VChart);
|
|
app.mount("#app");
|
|
});
|