Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jan 13, 2024
1 parent 8be6c3c commit 50d947f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/client/src/pages/i18n.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ const state = ref<{
getters?: InspectorState[]
}>({})
function getPiniaState(nodeId: string) {
function getI18nState(nodeId: string) {
bridgeRpc.getInspectorState({ inspectorId: INSPECTOR_ID, nodeId }).then(({ data }) => {
state.value = data
})
}
function clearPiniaState() {
function clearI18nState() {
state.value = {}
}
watch(selected, () => {
clearPiniaState()
getPiniaState(selected.value)
clearI18nState()
getI18nState(selected.value)
})
createCollapseContext('inspector-state')
Expand All @@ -38,7 +38,7 @@ onDevToolsClientConnected(() => {
tree.value = data
if (!selected.value && data.length) {
selected.value = data[0].id
getPiniaState(data[0].id)
getI18nState(data[0].id)
}
})
Expand All @@ -48,7 +48,7 @@ onDevToolsClientConnected(() => {
tree.value = data.data
if (!selected.value && data.data.length) {
selected.value = data.data[0].id
getPiniaState(data.data[0].id)
getI18nState(data.data[0].id)
}
}, {
inspectorId: INSPECTOR_ID,
Expand Down

0 comments on commit 50d947f

Please sign in to comment.