mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
- 在任务类型、模型、接口和前端页面中新增 `start_date` 和 `end_date` 字段 - 优化任务调度逻辑,支持根据开始和结束时间设置任务的执行时间 - 前端新增间隔时间设置组件和 Cron 表达式选择器,提升用户体验 - 更新依赖包,引入 `element-plus` 和 `vue3-cron-plus-picker` 组件
42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
import { defineConfig, loadEnv } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import { resolve } from "path";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ command, mode }) => {
|
|
const env = loadEnv(mode, process.cwd());
|
|
return {
|
|
// 设置scss的api类型为modern-compiler
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
api: 'modern-compiler'
|
|
}
|
|
}
|
|
},
|
|
|
|
plugins: [vue()],
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port: 5180,
|
|
proxy: {
|
|
[env.VITE_APP_BASE_API]: {
|
|
target: env.VITE_API_BASE_URL,
|
|
secure: false, // 请求是否为https
|
|
changeOrigin: true, // 是否跨域
|
|
// rewrite: (path) => path.replace(/^\/api/, '')
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
// 设置路径
|
|
'~': resolve(__dirname, './'),
|
|
// 设置别名
|
|
'@': resolve(__dirname, './src')
|
|
},
|
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
},
|
|
};
|
|
});
|