修复商品管理的bug
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
import { listGoodsCategory } from '@/api/shop/goodsCategory';
|
||||
import { toTreeData } from 'ele-admin-pro/es';
|
||||
import { GoodsCategory } from '@/api/shop/goodsCategory/model';
|
||||
import { FileRecordParam } from '@/api/system/file/model';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -114,6 +113,7 @@
|
||||
watch(
|
||||
() => props.options,
|
||||
() => {
|
||||
console.log(props.merchantId);
|
||||
if (props.merchantId) {
|
||||
where.merchantId = props.merchantId;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
);
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'done', Merchant): void;
|
||||
(e: 'done', Spec): void;
|
||||
(e: 'clear'): void;
|
||||
}>();
|
||||
|
||||
|
||||
@@ -608,7 +608,7 @@
|
||||
const goodsId = props.data?.goodsId;
|
||||
if(goodsId){
|
||||
listGoodsSpec({goodsId}).then(data => {
|
||||
console.log(data[0].specValue);
|
||||
|
||||
const specValue = data[0].specValue;
|
||||
if(specValue){
|
||||
spec.value = JSON.parse(specValue).map( d => {
|
||||
|
||||
Reference in New Issue
Block a user