We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vben Admin V5
在内容区域打开的抽屉,切换Tab时不会隐藏抽屉。
新项目中,从Playground的examples/drawer目录中复制出来,也存在该问题。但是运行Playground项目是正常的。
System: OS: Windows 11 10.0.22631 CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12600KF Memory: 32.08 GB / 63.84 GB Binaries: Node: 20.17.0 - D:\work\nodejs\node.EXE Yarn: 1.22.22 - D:\work\nodejs\yarn.CMD npm: 10.8.2 - D:\work\nodejs\npm.CMD pnpm: 9.14.4 - D:\work\nodejs\pnpm.CMD Browsers: Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.22621.3527
The text was updated successfully, but these errors were encountered:
onBeforeRouteLeave(() => { drawerApi.close(); });
在你的页面添加这几行代码。onBeforeRouteLeave从vue-router中导入,drawerApi换成你自己的drawer的api
Sorry, something went wrong.
onBeforeRouteLeave(() => { drawerApi.close(); }); 在你的页面添加这几行代码。onBeforeRouteLeave从vue-router中导入,drawerApi换成你自己的drawer的api
添加了上述代码后可以解决该问题。
No branches or pull requests
Version
Vben Admin V5
Describe the bug?
在内容区域打开的抽屉,切换Tab时不会隐藏抽屉。
![Image](https://private-user-images.githubusercontent.com/38549686/403867466-4c4cd402-27eb-4b05-91e3-2ee1a82111bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzkwMTQsIm5iZiI6MTczOTQzODcxNCwicGF0aCI6Ii8zODU0OTY4Ni80MDM4Njc0NjYtNGM0Y2Q0MDItMjdlYi00YjA1LTkxZTMtMmVlMWE4MjExMWJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5MjUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0MTcxZThhYjhlMmMzM2EwYWZmNzY0OGViYzhlZmY3ZWYyYzQ1NmU0NGFmMTZjNTk4YjEwNzBlNmQ4NmViNzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WdKEHSNk7ckcYoXVgIfQUgtWv-2Pn5YCS6GH4xYX75Y)
Reproduction
新项目中,从Playground的examples/drawer目录中复制出来,也存在该问题。但是运行Playground项目是正常的。
System Info
Relevant log output
Validations
The text was updated successfully, but these errors were encountered: