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

View File

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