Ver Fonte

😎1、阻止火狐浏览器在拖动时打开新窗口 2、升级npm依赖

zuohuaijun há 1 ano atrás
pai
commit
5da0fcaaa0
2 ficheiros alterados com 13 adições e 7 exclusões
  1. 7 7
      Web/package.json
  2. 6 0
      Web/src/App.vue

+ 7 - 7
Web/package.json

@@ -2,7 +2,7 @@
 	"name": "admin.net",
 	"type": "module",
 	"version": "2.4.33",
-	"lastBuildTime": "2024.07.14",
+	"lastBuildTime": "2024.07.17",
 	"description": "Admin.NET 站在巨人肩膀上的 .NET 通用权限开发框架",
 	"author": "zuohuaijun",
 	"license": "MIT",
@@ -18,7 +18,7 @@
 		"@logicflow/extension": "^1.2.27",
 		"@microsoft/signalr": "^8.0.7",
 		"@vue-office/docx": "^1.6.2",
-		"@vue-office/excel": "^1.7.8",
+		"@vue-office/excel": "^1.7.10",
 		"@vue-office/pdf": "^2.0.2",
 		"@vueuse/core": "^10.11.0",
 		"@wangeditor/editor": "^5.1.23",
@@ -54,7 +54,7 @@
 		"splitpanes": "^3.1.5",
 		"vcrontab-3": "^3.3.22",
 		"vform3-builds": "^3.0.10",
-		"vue": "^3.4.31",
+		"vue": "^3.4.32",
 		"vue-clipboard3": "^2.0.0",
 		"vue-demi": "^0.14.8",
 		"vue-grid-layout": "3.0.0-beta1",
@@ -70,14 +70,14 @@
 	"devDependencies": {
 		"@plugin-web-update-notification/vite": "^1.7.1",
 		"@types/lodash-es": "^4.17.12",
-		"@types/node": "^20.14.10",
+		"@types/node": "^20.14.11",
 		"@types/nprogress": "^0.2.3",
 		"@types/sortablejs": "^1.15.8",
 		"@typescript-eslint/eslint-plugin": "^7.16.1",
 		"@typescript-eslint/parser": "^7.16.1",
 		"@vitejs/plugin-vue": "^5.0.5",
 		"@vitejs/plugin-vue-jsx": "^4.0.0",
-		"@vue/compiler-sfc": "^3.4.31",
+		"@vue/compiler-sfc": "^3.4.32",
 		"code-inspector-plugin": "^0.14.2",
 		"eslint": "^8.57.0",
 		"eslint-plugin-vue": "^9.27.0",
@@ -85,9 +85,9 @@
 		"prettier": "^3.3.3",
 		"rollup-plugin-visualizer": "^5.12.0",
 		"sass": "^1.77.8",
-		"terser": "^5.31.2",
+		"terser": "^5.31.3",
 		"typescript": "^5.5.3",
-		"vite": "^5.3.3",
+		"vite": "^5.3.4",
 		"vite-plugin-cdn-import": "^1.0.1",
 		"vite-plugin-compression2": "^1.1.2",
 		"vite-plugin-vue-setup-extend": "^0.4.0",

+ 6 - 0
Web/src/App.vue

@@ -159,6 +159,12 @@ const updateFavicon = (url: string): void => {
 
 // 加载系统信息
 loadSysInfo();
+
+// 阻止火狐浏览器在拖动时打开新窗口
+document.body.ondrop = function (event) {
+	event.preventDefault();
+	event.stopPropagation();
+};
 </script>
 
 <style lang="scss">