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>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MeterSphere</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MeterSphere</title>
</head>
<body>
<div id="app"></div>
<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 licenseStore = useLicenseStore();
const moduleOption = [
{ label: 'menu.workbench', value: 'workstation' },
{ label: 'menu.testPlan', value: 'testPlan' },
// { label: 'menu.workbench', value: 'workstation' },
// { label: 'menu.testPlan', value: 'testPlan' },
{ label: 'menu.bugManagement', value: 'bugManagement' },
{ label: 'menu.caseManagement', value: 'caseManagement' },
{ label: 'menu.apiTest', value: 'apiTest' },
{ label: 'menu.uiTest', value: 'uiTest' },
{ label: 'menu.performanceTest', value: 'loadTest' },
// { label: 'menu.uiTest', value: 'uiTest' },
// { label: 'menu.performanceTest', value: 'loadTest' },
];
const emit = defineEmits<{

View File

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