提交 c45aeb38 编写于 作者: View Design's avatar View Design

Update Select.vue

上级 43a6ddf4
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
/> />
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
<UButton <UButton
v-for="item in collection" v-for="item in $collection"
color="white" color="white"
size="md" size="md"
class="flex" class="flex"
...@@ -49,11 +49,10 @@ ...@@ -49,11 +49,10 @@
</UModal> </UModal>
</template> </template>
<script setup> <script setup>
const { $isLibrarySelectOpen, $selectCollectionId, $selectThreadId } = storeToRefs(useLibraryStore()) const { $isLibrarySelectOpen, $selectCollectionId, $selectThreadId, $collection } = storeToRefs(useLibraryStore())
const { $openLibrarySelect, $closeLibrarySelect, $openLibraryCreate, $setSelectCollectionId, $getCollection } = useLibraryStore() const { $openLibrarySelect, $closeLibrarySelect, $openLibraryCreate, $setSelectCollectionId, $getCollection } = useLibraryStore()
const { saveCollection, deleteCollectionRecord } = useCollectionRequest() const { saveCollection, deleteCollectionRecord } = useCollectionRequest()
// 合集列表 // 合集列表
const collection = ref([])
const selected = ref([]) const selected = ref([])
const loading = ref(false) const loading = ref(false)
function handleClose () { function handleClose () {
...@@ -70,8 +69,6 @@ async function handleSelected(id) { ...@@ -70,8 +69,6 @@ async function handleSelected(id) {
selected.value = [id] selected.value = [id]
} }
async function handleSave() { async function handleSave() {
console.log(788)
return
if (loading.value) return if (loading.value) return
loading.value = true loading.value = true
// 取消合集 // 取消合集
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册