fix: 拖选文字时弹窗不再误关闭 #27
@@ -78,7 +78,7 @@ const navTabsRef = ref(null)
|
||||
// hide: 完全隐藏(只有满足条件才显示)
|
||||
const allTabs = [
|
||||
{ key: 'search', icon: '🔍', label: '配方查询' },
|
||||
{ key: 'manage', icon: '📋', label: '管理配方', require: 'login' },
|
||||
{ key: 'manage', icon: '📋', label: '管理配方', hide: 'editor' },
|
||||
{ key: 'inventory', icon: '📦', label: '个人库存', require: 'login' },
|
||||
{ key: 'oils', icon: '💧', label: '精油价目' },
|
||||
{ key: 'projects', icon: '💼', label: '商业核算', require: 'login' },
|
||||
@@ -88,6 +88,7 @@ const allTabs = [
|
||||
const visibleTabs = computed(() => allTabs.filter(t => {
|
||||
if (!t.hide) return true
|
||||
if (t.hide === 'admin') return auth.isAdmin
|
||||
if (t.hide === 'editor') return auth.canEdit
|
||||
return true
|
||||
}))
|
||||
const unreadNotifCount = ref(0)
|
||||
|
||||
Reference in New Issue
Block a user