1.文章选项卡接口联调

sws 2024-08-22
v1.0.0
sws 2024-08-22 11:49:41 +08:00
parent 49070e7118
commit 3902b16e2b
2 changed files with 10 additions and 5 deletions

View File

@ -43,8 +43,13 @@ if (props.type == 'card') {
// //
className.value = 'align-c'; className.value = 'align-c';
} }
watch(
const from = computed(() => props.data); () => props.data,
() => {
from.value = props.data;
}
);
const from = ref(props.data);
const on_click = (item: any, index: number) => { const on_click = (item: any, index: number) => {
emits('click', item, index); emits('click', item, index);
@ -58,7 +63,7 @@ const edit = (index: number) => {
}; };
// //
const on_sort = () => { const on_sort = () => {
emits('onSort', from); emits('onSort', from.value);
}; };
</script> </script>
<style scoped> <style scoped>
@ -70,7 +75,8 @@ const on_sort = () => {
.size-16 { .size-16 {
font-size: 1.6rem !important; font-size: 1.6rem !important;
} }
.icon-del-o, .icon-commodity-edit { .icon-del-o,
.icon-commodity-edit {
cursor: pointer; cursor: pointer;
} }
.cursor-move { .cursor-move {

View File

@ -114,7 +114,6 @@ const init = () => {
link_select.value = props.type[0]; link_select.value = props.type[0];
} }
} }
console.log(link_select.value);
url_value_store.set_url_value(res.data); url_value_store.set_url_value(res.data);
}) })
.catch(() => { .catch(() => {