Files
ZDXSGYHT/library/plugins/support.ts
liangjian 836c61ac55 @@@@@@
2026-01-27 16:32:15 +08:00

26 lines
1.0 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.

import { ElMessageBox } from 'element-plus'
import pinia from '/@/store'
import { useSettingsStore } from '/@/store/modules/settings'
export default {
install: () => {
const { title } = useSettingsStore(pinia)
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (!!window.ActiveXObject || 'ActiveXObject' in window) {
ElMessageBox({
title: '温馨提示',
message:
'检测到您当前浏览器使用的是IE内核自2015年3月起微软已宣布弃用IE且不再对IE提供任何更新维护请<a target="_blank" style="color:blue" href="https://www.microsoft.com/zh-cn/edge/">点击此处</a>访问微软官网更新浏览器,如果您使用的是双核浏览器,请您切换浏览器内核为极速模式',
type: 'warning',
showClose: true,
showConfirmButton: false,
closeOnClickModal: false,
closeOnPressEscape: false,
closeOnHashChange: false,
dangerouslyUseHTMLString: true,
}).then(() => {})
}
},
}