|
|
@@ -1082,6 +1082,7 @@ async loadGiftRule(productId) {
|
|
|
}
|
|
|
if (res.code === 200) {
|
|
|
// Save dimension weights
|
|
|
+ if (productId && Array.isArray(dimensionWeights)) {
|
|
|
if (productId && Array.isArray(dimensionWeights)) {
|
|
|
try {
|
|
|
await saveDimensionWeights('product', productId, dimensionWeights)
|
|
|
@@ -1148,7 +1149,8 @@ async loadGiftRule(productId) {
|
|
|
}
|
|
|
}
|
|
|
this.$message.success(this.isEdit ? '保存成功' : '创建成功')
|
|
|
- this.$router.push('/product-manage')
|
|
|
+ const page = this.$route.query.page || 1
|
|
|
+ this.$router.push(`/product-manage?page=${page}`)
|
|
|
} else {
|
|
|
this.$message.error(res.message || '操作失败')
|
|
|
}
|