2026-04-01 00:58:42 +08:00
|
|
|
import { QueryClient, VueQueryPlugin } from "@tanstack/vue-query";
|
|
|
|
|
import { createApp } from "vue";
|
|
|
|
|
import {
|
|
|
|
|
Alert,
|
|
|
|
|
App as AntApp,
|
|
|
|
|
Avatar,
|
|
|
|
|
Badge,
|
|
|
|
|
Button,
|
|
|
|
|
Card,
|
|
|
|
|
Checkbox,
|
|
|
|
|
Col,
|
|
|
|
|
ConfigProvider,
|
|
|
|
|
DatePicker,
|
|
|
|
|
Descriptions,
|
2026-04-02 00:31:28 +08:00
|
|
|
Divider,
|
2026-04-01 00:58:42 +08:00
|
|
|
Drawer,
|
|
|
|
|
Dropdown,
|
|
|
|
|
Empty,
|
|
|
|
|
Form,
|
|
|
|
|
Input,
|
|
|
|
|
InputNumber,
|
|
|
|
|
Layout,
|
|
|
|
|
List,
|
|
|
|
|
Menu,
|
|
|
|
|
Modal,
|
|
|
|
|
Popconfirm,
|
|
|
|
|
Progress,
|
|
|
|
|
Radio,
|
2026-04-05 20:41:42 +08:00
|
|
|
Result,
|
2026-04-01 00:58:42 +08:00
|
|
|
Row,
|
|
|
|
|
Select,
|
|
|
|
|
Skeleton,
|
2026-04-02 00:31:28 +08:00
|
|
|
Space,
|
2026-04-01 00:58:42 +08:00
|
|
|
Spin,
|
|
|
|
|
Statistic,
|
2026-04-02 00:31:28 +08:00
|
|
|
Switch,
|
2026-04-01 00:58:42 +08:00
|
|
|
Steps,
|
|
|
|
|
Table,
|
|
|
|
|
Tabs,
|
|
|
|
|
Tag,
|
2026-04-05 17:14:13 +08:00
|
|
|
Tree,
|
2026-04-02 00:31:28 +08:00
|
|
|
TimePicker,
|
2026-04-01 00:58:42 +08:00
|
|
|
Tooltip,
|
2026-04-03 17:48:30 +08:00
|
|
|
Upload,
|
2026-04-05 17:14:13 +08:00
|
|
|
TreeSelect,
|
2026-04-01 00:58:42 +08:00
|
|
|
} from "ant-design-vue";
|
|
|
|
|
|
|
|
|
|
import App from "./App.vue";
|
|
|
|
|
import { i18n } from "./i18n";
|
|
|
|
|
import { router } from "./router";
|
|
|
|
|
import { pinia } from "./stores/pinia";
|
|
|
|
|
import "./styles.css";
|
|
|
|
|
import "ant-design-vue/dist/reset.css";
|
2026-04-05 17:14:13 +08:00
|
|
|
import select from "ant-design-vue/es/select";
|
|
|
|
|
import tree from "ant-design-vue/es/tree";
|
2026-04-01 00:58:42 +08:00
|
|
|
|
|
|
|
|
const queryClient = new QueryClient({
|
|
|
|
|
defaultOptions: {
|
|
|
|
|
queries: {
|
|
|
|
|
staleTime: 30000,
|
|
|
|
|
refetchOnWindowFocus: false,
|
|
|
|
|
retry: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const app = createApp(App);
|
2026-04-02 00:31:28 +08:00
|
|
|
app.component("ATextarea", Input.TextArea);
|
2026-04-01 00:58:42 +08:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
Alert,
|
|
|
|
|
AntApp,
|
|
|
|
|
Avatar,
|
|
|
|
|
Badge,
|
|
|
|
|
Button,
|
|
|
|
|
Card,
|
|
|
|
|
Checkbox,
|
|
|
|
|
Col,
|
|
|
|
|
ConfigProvider,
|
|
|
|
|
DatePicker,
|
|
|
|
|
Descriptions,
|
2026-04-02 00:31:28 +08:00
|
|
|
Divider,
|
2026-04-01 00:58:42 +08:00
|
|
|
Drawer,
|
|
|
|
|
Dropdown,
|
|
|
|
|
Empty,
|
|
|
|
|
Form,
|
|
|
|
|
Input,
|
|
|
|
|
InputNumber,
|
|
|
|
|
Layout,
|
|
|
|
|
List,
|
|
|
|
|
Menu,
|
|
|
|
|
Modal,
|
|
|
|
|
Popconfirm,
|
|
|
|
|
Progress,
|
|
|
|
|
Radio,
|
2026-04-05 20:41:42 +08:00
|
|
|
Result,
|
2026-04-01 00:58:42 +08:00
|
|
|
Row,
|
|
|
|
|
Select,
|
|
|
|
|
Skeleton,
|
2026-04-02 00:31:28 +08:00
|
|
|
Space,
|
2026-04-01 00:58:42 +08:00
|
|
|
Spin,
|
|
|
|
|
Statistic,
|
2026-04-02 00:31:28 +08:00
|
|
|
Switch,
|
2026-04-01 00:58:42 +08:00
|
|
|
Steps,
|
|
|
|
|
Table,
|
|
|
|
|
Tabs,
|
|
|
|
|
Tag,
|
2026-04-02 00:31:28 +08:00
|
|
|
TimePicker,
|
2026-04-01 00:58:42 +08:00
|
|
|
Tooltip,
|
2026-04-05 17:14:13 +08:00
|
|
|
Tree,
|
|
|
|
|
TreeSelect,
|
2026-04-03 17:48:30 +08:00
|
|
|
Upload,
|
2026-04-01 00:58:42 +08:00
|
|
|
].forEach((component) => {
|
|
|
|
|
app.use(component);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
app.use(i18n).use(pinia).use(router).use(VueQueryPlugin, { queryClient }).mount("#app");
|