mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:17:52 +08:00
修复标签栏未开启时调用 useTabbar 内函数报错
This commit is contained in:
@@ -123,7 +123,7 @@ export default function useTabbar() {
|
||||
*/
|
||||
function checkCloseLeftSide(tabId = getId()) {
|
||||
let flag = true
|
||||
if (tabId === tabbarStore.list[0].tabId) {
|
||||
if (tabId === tabbarStore.list[0]?.tabId) {
|
||||
flag = false
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user