fix: 🧩 修复bug
This commit is contained in:
10
src/main.ts
10
src/main.ts
@@ -32,6 +32,16 @@ import pinia from "@/stores";
|
||||
import errorHandler from "@/utils/errorHandler";
|
||||
import VXETable from "vxe-table";
|
||||
import "vxe-table/lib/style.css";
|
||||
|
||||
// 全局添加 ElMessage 的高层级样式(不用再单独写 CSS 文件)
|
||||
const style = document.createElement("style");
|
||||
style.textContent = `
|
||||
.el-message {
|
||||
z-index: 3000 !important;
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(style);
|
||||
|
||||
localStorage.setItem("baseUrl", import.meta.env.VITE_SINGLE_URL);
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
Reference in New Issue
Block a user