代码更新
This commit is contained in:
@@ -102,6 +102,7 @@
|
||||
const form = reactive({
|
||||
...$form
|
||||
})
|
||||
console.log(form)
|
||||
watch(()=>props.price,(newval)=>{
|
||||
console.log(newval);
|
||||
form.price=newval
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user