【功能完善】商品评论上传图片

pull/126/head
puhui999 2024-11-29 15:43:05 +08:00
parent 4c4134389e
commit 1407350bf7
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@
<script setup>
import sheep from '@/sheep';
import { onLoad } from '@dcloudio/uni-app';
import { reactive, ref } from 'vue';
import { reactive } from 'vue';
import OrderApi from '@/sheep/api/trade/order';
const state = reactive({
@ -111,7 +111,7 @@
* @param commentIndex 当前评论的下标
*/
function uploadSuccess(payload, commentIndex) {
state.commentList[commentIndex].picUrls = state.commentList[commentIndex].images;
state.commentList[commentIndex].picUrls = payload.tempFilePaths;
}
onLoad(async (options) => {