add pinia

This commit is contained in:
dt
2023-09-17 21:44:28 +08:00
parent fce56e43c3
commit 4adb8401d6
3 changed files with 40 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
selected-color="primary"
default-expand-all
:nodes="LeftDataBus.root"
v-model:selected="selected"
v-model:selected="flowNames1"
node-key="label"
>
</q-tree>
@@ -18,9 +18,12 @@ import {
setControlPanelE,
} from 'components/flowEditor/left/DataBus';
import { ref } from 'vue';
import { storeToRefs } from 'pinia';
import { useFlowEditorStore } from 'stores/flowEditor';
// 应该在page中用网络请求获取值并初始化组件
// 然后在page中执行setControlPane设置databus
const selected = ref('保存をクリックした時');
const store = useFlowEditorStore();
const { flowNames1 } = storeToRefs(store);
setControlPanelE();
</script>