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