diff --git a/src/components/common/upload/index.vue b/src/components/common/upload/index.vue index 51fbeb06..cf7500a2 100644 --- a/src/components/common/upload/index.vue +++ b/src/components/common/upload/index.vue @@ -134,7 +134,7 @@
- +
@@ -462,6 +462,7 @@ const remove_type_event = (node: any, data: Tree) => { // const page_total = ref(0); // 当前页 const page = ref(1); +const page_size = ref(21); // 总数量 const data_total = ref(0); // 名称查询 @@ -477,6 +478,7 @@ const get_attachment_list = (type?: string) => { img_loading.value = true; const new_data = { page: page.value, + page_size: page_size.value, type: upload_type.value == 'img' ? 'image' : upload_type.value == 'video' ? 'video' : upload_type.value == 'file' ? 'file' : '', keywords: search_name.value, category_id: category_id.value, diff --git a/src/components/common/url-value/url-value-dialog.vue b/src/components/common/url-value/url-value-dialog.vue index cc9bd2d0..83b3d48f 100644 --- a/src/components/common/url-value/url-value-dialog.vue +++ b/src/components/common/url-value/url-value-dialog.vue @@ -6,9 +6,9 @@
-
+
- + {{ item.name }} @@ -91,6 +91,16 @@ const link_value = ref([]); const reset_compontent = ref(false); const custom_link_type = ref(props.type); const base_data = ref([]); +watch( + () => props.type, + (new_val) => { + if (new_val.length > 0) { + link_select.value = props.type[0]; + } else { + link_select.value = ''; + } + } +); onMounted(() => { nextTick(() => { // 定时获取common_store.common.article_category的数据,直到拿到值或者关闭页面为止