修改页面显示1

v1.0.0
于肖磊 2024-09-04 17:31:52 +08:00
parent 9f99eb91ce
commit b5e20337a1
2 changed files with 3 additions and 7 deletions

View File

@ -276,7 +276,6 @@ const default_list = {
};
const list = ref<data_list[]>([]);
onMounted(() => {
console.log('aaaa');
SeckillAPI.getSeckillList({}).then((res: any) => {
const data = res.data;
console.log(res.data);

View File

@ -120,12 +120,9 @@ const props = defineProps({
}),
},
});
const state = reactive({
form: props.value,
data: props.styles,
});
// 使toRefs
const { form, data } = toRefs(state);
const form = ref(props.value);
const data = ref(props.styles);
watchEffect(() => {
form.value = props.value;