refactor: split connection_service into connection_service and browser_service in go

refactor: split connectionStore into connectionStore and browserStore in js
This commit is contained in:
tiny-craft
2023-11-05 11:57:52 +08:00
parent 44df1d5800
commit e28d091500
33 changed files with 2994 additions and 2951 deletions

View File

@@ -8,10 +8,10 @@ import ContentValueSet from '@/components/content_value/ContentValueSet.vue'
import ContentValueZset from '@/components/content_value/ContentValueZSet.vue'
import ContentValueStream from '@/components/content_value/ContentValueStream.vue'
import { useThemeVars } from 'naive-ui'
import useConnectionStore from 'stores/connections.js'
import useBrowserStore from 'stores/browser.js'
const themeVars = useThemeVars()
const connectionStore = useConnectionStore()
const browserStore = useBrowserStore()
const props = defineProps({
blank: Boolean,
@@ -54,7 +54,7 @@ const valueComponents = {
* @returns {Promise<null>}
*/
const onReloadKey = async () => {
await connectionStore.loadKeyValue(props.name, props.db, props.key, props.viewAs)
await browserStore.loadKeyValue(props.name, props.db, props.key, props.viewAs)
}
</script>