代码更新
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
$types
|
||||
} from '@/commons/goodsData.js'
|
||||
import { $types } from '@/commons/goodsData.js'
|
||||
export function returnSkuSnap(goods) {
|
||||
const selectSpec = typeof goods.selectSpec === 'string' ? JSON.parse(goods.selectSpec) : goods.selectSpec
|
||||
let result = selectSpec.map(v => {
|
||||
@@ -11,8 +9,8 @@ export function returnSkuSnap(goods) {
|
||||
})
|
||||
return result
|
||||
}
|
||||
export function returnTypeEnum(typeEnum) {
|
||||
const item = $types.find(v => v.title == typeEnum)
|
||||
export function returnTypeEnum(type) {
|
||||
const item = $types.find(v => v.title == type)
|
||||
let result = item ? item.value : undefined
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user