소스 검색

fix: 修复导入物模型传参错误

yanglzh 1 년 전
부모
커밋
96d89d795d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/iot/device/product/detail.vue

+ 1 - 1
src/views/iot/device/product/detail.vue

@@ -159,7 +159,7 @@
 				</el-tabs>
 				<div class="import">
 					<div class="row_bet">
-						<el-upload accept="json" :show-file-list="false" :limit="1" :data="{ key: detail.key }" :headers="headers" :action="uploadUrl" :on-success="updateImg">
+						<el-upload accept="json" :show-file-list="false" :limit="1" :data="{ productKey: detail.key }" :headers="headers" :action="uploadUrl" :on-success="updateImg">
 							<el-button size="small">
 								<el-icon> <ele-Upload /> </el-icon>
 								导入物模型