mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-09 22:33:57 +00:00
Update comment translations to English
This commit is contained in:
parent
55d796c669
commit
496a208bf9
@ -100,6 +100,7 @@ const GraphLabels = () => {
|
||||
onChange={(newLabel) => {
|
||||
const currentLabel = useSettingsStore.getState().queryLabel
|
||||
|
||||
// select the last item means query all
|
||||
if (newLabel === '...') {
|
||||
newLabel = '*'
|
||||
}
|
||||
@ -120,7 +121,7 @@ const GraphLabels = () => {
|
||||
}
|
||||
|
||||
if (newLabel === currentLabel && newLabel !== '*') {
|
||||
// 选择相同标签时切换到'*'
|
||||
// reselect the same itme means qery all
|
||||
useSettingsStore.getState().setQueryLabel('*')
|
||||
} else {
|
||||
useSettingsStore.getState().setQueryLabel(newLabel)
|
||||
|
||||
@ -173,7 +173,7 @@ const useGraphStoreBase = create<GraphState>()((set, get) => ({
|
||||
}),
|
||||
|
||||
setSigmaGraph: (sigmaGraph: DirectedGraph | null) => {
|
||||
// 直接替换图形实例,不尝试保留WebGL上下文
|
||||
// Replace graph instance, no need to keep WebGL context
|
||||
set({ sigmaGraph });
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user