feat:修改评估图片等

This commit is contained in:
lixg
2023-02-26 19:17:34 +08:00
parent 94764e1307
commit 59569b7b34
4 changed files with 27 additions and 22 deletions

View File

@@ -64,10 +64,10 @@ export default {
setup(props, { emit }) {
const curItem = ref(props.item);
console.log("选项信息", curItem.value, process.env.VUE_APP_FILE_PATH);
if (curItem.value.imgVal) {
curItem.value.imgVal =
process.env.VUE_APP_FILE_PATH + curItem.value.imgVal;
}
// if (curItem.value.imgVal) {
// curItem.value.imgVal =
// process.env.VUE_APP_FILE_PATH + curItem.value.imgVal;
// }
const state = reactive({
hasImgName: "",
@@ -109,7 +109,10 @@ export default {
fileUp(formData).then((res) => {
if (res.data.code === 200) {
state.hasImgName = file.name;
emit("src", { id: curItem.value.id, src: res.data.data });
emit("src", {
id: curItem.value.id,
src: process.env.VUE_APP_FILE_PATH + res.data.data,
});
}
});
return false;