Skip to content

Commit 9adcf7b

Browse files
committed
Add
1 parent 9a17ba4 commit 9adcf7b

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineConfig({
3838
hostname: 'https://blog.namichong.com'
3939
},
4040
// 开启黑暗主题按钮
41-
appearance: true,
41+
appearance: false,
4242
// URL清除.html后缀
4343
cleanUrls: false,
4444
// markdown 配置

.vitepress/sidebar/bugs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ const bugsSidebar: SidebarType[] = [
5252
text: 'Element-UI & Element-Plus',
5353
collapsed: true,
5454
items: [
55+
{
56+
icon: '🔹',
57+
text: 'el-upload 为啥没法拖拽了?',
58+
link: '/bugs/web/element-ui/el-upload-cant-drag'
59+
},
5560
{
5661
icon: '🔹',
5762
text: 'MessageBox报错Uncaught (in promise) cancel',
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
lastUpdated: 2025/04/30 10:12
3+
---
4+
5+
# el-upload 为啥没法拖拽了?
6+
7+
今天发现一个很奇葩的问题...
8+
9+
在 Chrome 浏览器上,el-upload 已经设置了 `drag` 属性,但是还是无法正常使用拖拽文件功能...
10+
11+
最后发现,是 Window 下的设置问题...
12+
13+
**解决方法:**
14+
15+
1. Windows 键 + R,打开“运行”对话框:输入 regedit,回车。
16+
2. 在注册表目录中,依次选择:HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> policies -> system
17+
3. 点击 system 后,在右侧面板右键 EnableLUA 参数,把值改成 0
18+
4. 最后重启电脑
19+
20+
至此,问题解决了,我麻了...

0 commit comments

Comments
 (0)