support.js 1.1 KB

123456789101112131415161718192021222324252627
  1. import { MessageBox } from "element-ui";
  2. import { donation } from "@/config/settings";
  3. import { repository, dependencies } from "../../package.json";
  4. if (!!window.ActiveXObject || "ActiveXObject" in window) {
  5. MessageBox({
  6. title: "温馨提示",
  7. message:
  8. '自2015年3月起,微软已宣布弃用IE,且不再对IE提供任何更新维护,请<a target="_blank" style="color:blue" href="https://www.microsoft.com/zh-cn/edge/">点击此处</a>访问微软官网更新浏览器,如果您使用的是双核浏览器,请您切换浏览器内核为极速模式',
  9. type: "warning",
  10. showClose: false,
  11. showConfirmButton: false,
  12. closeOnClickModal: false,
  13. closeOnPressEscape: false,
  14. closeOnHashChange: false,
  15. dangerouslyUseHTMLString: true,
  16. });
  17. }
  18. if (process.env.NODE_ENV !== "development" && donation) {
  19. document.writeln(
  20. '<script>console.log("vue-admin-beautiful推广信息,如果您不愿意保留可在配置中关闭:' +
  21. repository.url.slice(4) +
  22. '");</script>'
  23. );
  24. }
  25. if (!dependencies["zx-icon"] || !dependencies["zx-layouts"]) {
  26. document.body.innerHTML = "";
  27. }