fix: 解决firefox浏览器拖拽打开新标签页

This commit is contained in:
RubyLiu 2024-02-01 19:52:21 +08:00 committed by 刘瑞斌
parent 3d54e2186d
commit 58db7bb284
3 changed files with 29 additions and 19 deletions

View File

@ -1,13 +1,23 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh"> <html lang="zh">
<head>
<meta charset="UTF-8" /> <head>
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<title>MeterSphere</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head> <title>MeterSphere</title>
<body> </head>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script> <body>
</body> <div id="app"></div>
</html> <script type="module" src="/src/main.ts"></script>
<script>
//解决 firefox 拖拽会自动打开新标签
document.body.ondrop = function (event) {
event.preventDefault()
event.stopPropagation()
}
</script>
</body>
</html>

View File

@ -136,13 +136,13 @@
const currentOrgId = computed(() => appStore.currentOrgId); const currentOrgId = computed(() => appStore.currentOrgId);
const licenseStore = useLicenseStore(); const licenseStore = useLicenseStore();
const moduleOption = [ const moduleOption = [
{ label: 'menu.workbench', value: 'workstation' }, // { label: 'menu.workbench', value: 'workstation' },
{ label: 'menu.testPlan', value: 'testPlan' }, // { label: 'menu.testPlan', value: 'testPlan' },
{ label: 'menu.bugManagement', value: 'bugManagement' }, { label: 'menu.bugManagement', value: 'bugManagement' },
{ label: 'menu.caseManagement', value: 'caseManagement' }, { label: 'menu.caseManagement', value: 'caseManagement' },
{ label: 'menu.apiTest', value: 'apiTest' }, { label: 'menu.apiTest', value: 'apiTest' },
{ label: 'menu.uiTest', value: 'uiTest' }, // { label: 'menu.uiTest', value: 'uiTest' },
{ label: 'menu.performanceTest', value: 'loadTest' }, // { label: 'menu.performanceTest', value: 'loadTest' },
]; ];
const emit = defineEmits<{ const emit = defineEmits<{

View File

@ -136,13 +136,13 @@
const affiliatedOrgOption = ref<SystemOrgOption[]>([]); const affiliatedOrgOption = ref<SystemOrgOption[]>([]);
const licenseStore = useLicenseStore(); const licenseStore = useLicenseStore();
const moduleOption = [ const moduleOption = [
{ label: 'menu.workbench', value: 'workstation' }, // { label: 'menu.workbench', value: 'workstation' },
{ label: 'menu.testPlan', value: 'testPlan' }, // { label: 'menu.testPlan', value: 'testPlan' },
{ label: 'menu.bugManagement', value: 'bugManagement' }, { label: 'menu.bugManagement', value: 'bugManagement' },
{ label: 'menu.caseManagement', value: 'caseManagement' }, { label: 'menu.caseManagement', value: 'caseManagement' },
{ label: 'menu.apiTest', value: 'apiTest' }, { label: 'menu.apiTest', value: 'apiTest' },
{ label: 'menu.uiTest', value: 'uiTest' }, // { label: 'menu.uiTest', value: 'uiTest' },
{ label: 'menu.performanceTest', value: 'loadTest' }, // { label: 'menu.performanceTest', value: 'loadTest' },
]; ];
const emit = defineEmits<{ const emit = defineEmits<{