配置语言

This commit is contained in:
lzp
2026-03-03 11:10:43 +08:00
parent 84cc6a5607
commit 0e5b3049b6
11 changed files with 260 additions and 105 deletions

View File

@@ -26,6 +26,7 @@ export class StateManager {
}
constructor(options) {
this.vueFlow = options.vueFlow
this.zoom = ref(1)
this.nodes = ref<NodesItem[]>([]);
this.nodes_ = computed(() => {
return this.nodes.value.map((node, index) => {
@@ -61,7 +62,6 @@ export class StateManager {
return arr
})
this.zoom = ref(1)
}
/** 添加节点 */
addNode(node: NodesItem) {

View File

@@ -22,11 +22,11 @@
<p></p>
<div class="btn" @click="onSetting">
<span class="icon"><svg-icon name="setting" size="18" /></span>
<span class="label">Settings</span>
<span class="label">{{ $t('Home.setting') }}</span>
</div>
<div class="btn" @click="onLogout">
<span class="icon"><svg-icon name="logout" size="18" /></span>
<span class="label">Log out</span>
<span class="label">{{ $t('Home.logout') }}</span>
</div>
</div>
</el-popover>