File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
ui/src/views/tool/toolStore Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 100100</template >
101101
102102<script setup lang="ts">
103- import { onBeforeMount , ref } from ' vue'
103+ import { onBeforeMount , ref , watch } from ' vue'
104104import ToolStoreApi from ' @/api/tool/store'
105105import { t } from ' @/locales'
106106import ToolCard from ' ./ToolCard.vue'
@@ -127,7 +127,7 @@ const dialogVisible = ref(false)
127127const loading = ref (false )
128128const searchValue = ref (' ' )
129129const folderId = ref (' ' )
130- const toolType = ref (' INTERNAL ' )
130+ const toolType = ref (' APPSTORE ' )
131131const defaultCategories = ref <ToolCategory []>([
132132 // 第一版不上
133133 // {
@@ -165,6 +165,12 @@ const categories = ref<ToolCategory[]>([...defaultCategories.value])
165165
166166const filterList = ref <any >(null )
167167
168+ watch (dialogVisible , (bool ) => {
169+ if (! bool ) {
170+ toolType .value = ' APPSTORE'
171+ }
172+ })
173+
168174function getSubTitle(tool : any ) {
169175 return categories .value .find ((i ) => i .id === tool .label )?.title ?? ' '
170176}
You can’t perform that action at this time.
0 commit comments