Skip to content

Commit 219bc20

Browse files
fix: tool store bugs
1 parent 1dcca7f commit 219bc20

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ui/src/views/tool/toolStore/ToolStoreDialog.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</template>
101101

102102
<script setup lang="ts">
103-
import { onBeforeMount, ref } from 'vue'
103+
import { onBeforeMount, ref, watch } from 'vue'
104104
import ToolStoreApi from '@/api/tool/store'
105105
import { t } from '@/locales'
106106
import ToolCard from './ToolCard.vue'
@@ -127,7 +127,7 @@ const dialogVisible = ref(false)
127127
const loading = ref(false)
128128
const searchValue = ref('')
129129
const folderId = ref('')
130-
const toolType = ref('INTERNAL')
130+
const toolType = ref('APPSTORE')
131131
const defaultCategories = ref<ToolCategory[]>([
132132
// 第一版不上
133133
// {
@@ -165,6 +165,12 @@ const categories = ref<ToolCategory[]>([...defaultCategories.value])
165165
166166
const filterList = ref<any>(null)
167167
168+
watch(dialogVisible, (bool) => {
169+
if (!bool) {
170+
toolType.value = 'APPSTORE'
171+
}
172+
})
173+
168174
function getSubTitle(tool: any) {
169175
return categories.value.find((i) => i.id === tool.label)?.title ?? ''
170176
}

0 commit comments

Comments
 (0)