mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
fix: 关闭编排对话框时错误的插件顺序
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</v-list>
|
||||
|
||||
<template v-slot:actions>
|
||||
<v-btn class="ml-auto" text="关闭" prepend-icon="mdi-close" @click="isOrchestrationDialogActive = false"></v-btn>
|
||||
<v-btn class="ml-auto" text="关闭" prepend-icon="mdi-close" @click="cancelOrderChanges"></v-btn>
|
||||
<v-btn color="primary" prepend-icon="mdi-content-save-outline" @click="saveOrder">应用</v-btn>
|
||||
</template>
|
||||
</v-card>
|
||||
@@ -103,6 +103,11 @@ const togglePlugin = (plugin) => {
|
||||
|
||||
const isOrchestrationDialogActive = ref(false)
|
||||
|
||||
const cancelOrderChanges = () => {
|
||||
refresh()
|
||||
isOrchestrationDialogActive.value = false
|
||||
}
|
||||
|
||||
const saveOrder = () => {
|
||||
// 为所有插件的 priority 赋值,倒序
|
||||
plugins.value.forEach(plugin => {
|
||||
|
||||
Reference in New Issue
Block a user