代码更新

This commit is contained in:
GaoHao
2025-03-10 09:14:57 +08:00
parent 4f65b08c06
commit 490c513f48
48 changed files with 1162 additions and 537 deletions

View File

@@ -102,6 +102,7 @@
const form = reactive({
...$form
})
console.log(form)
watch(()=>props.price,(newval)=>{
console.log(newval);
form.price=newval

View File

@@ -4,13 +4,8 @@
</template>
<script setup>
import {
$uploadFile
} from '@/http/yskApi/file.js'
import {
ref,
watch
} from 'vue';
import { ref, watch } from 'vue';
import { uploadFile } from '@/api/index.js'
const props = defineProps({
modelValue: {
@@ -49,7 +44,7 @@
// #ifndef H5
file= par
// #endif
return $uploadFile(file)
return uploadFile(file)
}
function afterRead(e) {
@@ -62,7 +57,7 @@
console.log(res);
images.value.push({
url: e.file[i].url,
serveUrl: res.data[0]
serveUrl: res
})
}).catch(res => {
console.log(res);
@@ -82,7 +77,7 @@
console.log(res);
images.value.push({
url: e.file.url,
serveUrl: res.data[0]
serveUrl: res
})
}).catch(res => {
console.log(res);