Files
wanghu 2e36d7a9c8
build / build (push) Successful in 9m55s
commit
2026-10-10 15:58:02 +08:00

37 lines
1.3 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 独立预览入口:绕过 SSO/登录,直接渲染「我要请假」页以核对分段控件(请假类型等)样式
// 数据来自 preview-ut/mock-server.mjs(8109),由 preview.vite.config.ts 代理
import { createApp, h } from "vue";
import { createRouter, createMemoryHistory, RouterView } from "vue-router";
import ViewUIPlus from "view-ui-plus";
import "view-ui-plus/dist/styles/viewuiplus.css";
import "@/assets/styles/main.scss";
import "@/assets/styles/layout.css";
import "@/assets/styles/icons.css";
import "virtual:svg-icons-register";
import ApplyLeave from "@/views/leave/ApplyLeave.vue";
const router = createRouter({
history: createMemoryHistory(),
routes: [
{ path: "/", redirect: "/apply" },
{ path: "/apply", component: ApplyLeave },
],
});
router.push("/apply");
const app = createApp({ render: () => h(RouterView) });
app.use(router);
app.use(ViewUIPlus);
app.mount("#app");
// 便于截图核对:撑开容器 + 选中第二个类型观察选中态
setTimeout(() => {
const host = document.getElementById("app");
if (host) {
host.style.padding = "20px 24px 40px";
host.style.minHeight = "100vh";
host.style.boxSizing = "border-box";
host.style.background = "#f5f7fa";
}
}, 300);