Skip to content

Commit

Permalink
Update spuForm.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
surper00001 authored Jun 18, 2024
1 parent 4c43c46 commit e54804f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/views/product/spu/components/spuForm.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<!--
* @Description: Stay hungry,Stay foolish
* @Author: Huccct
* @Date: 2023-05-28 11:47:08
* @LastEditors: Huccct
* @LastEditTime: 2023-05-28 22:46:31
-->

<script setup lang="ts">
import type {
SpuData,
Expand All @@ -22,7 +16,7 @@ import {
reqAllTradeMark,
reqSpuImageList,
reqSpuHasSaleAttr,
reqAllSalAttr,
reqAllSaleAttr,
reqAddOrUpdateSpu,
} from '@/api/product/spu'
import { ref, computed, nextTick } from 'vue'
Expand Down Expand Up @@ -51,7 +45,7 @@ const initHasSpuData = async (spu: SpuData) => {
let res: AllTradeMark = await reqAllTradeMark()
let res1: SpuHasImg = await reqSpuImageList(spu.id as number)
let res2: SaleAttrResponseData = await reqSpuHasSaleAttr(spu.id as number)
let res3: HasSaleAttrResponseData = await reqAllSalAttr()
let res3: HasSaleAttrResponseData = await reqAllSaleAttr()
AllTradeMark.value = res.data
imgList.value = res1.data.map((item) => {
Expand Down Expand Up @@ -185,7 +179,7 @@ const initAddSpu = async (c3Id: number | string) => {
saleAttrIdAndValueName.value = ''
SpuParams.value.category3Id = c3Id
let res: AllTradeMark = await reqAllTradeMark()
let res1: HasSaleAttrResponseData = await reqAllSalAttr()
let res1: HasSaleAttrResponseData = await reqAllSaleAttr()
AllTradeMark.value = res.data
allSaleAttr.value = res1.data
}
Expand Down

0 comments on commit e54804f

Please sign in to comment.