修复工作台删除数据没刷新问题与商品添加显示问题

This commit is contained in:
hupeng committed 2025-08-30 14:47:02 +08:00
1 parent 631efcd616
commit f4b3dee1dd
2 files changed
+3 -4

No files matched your search

@@ -110,7 +110,7 @@ import OrderRecord from './OrderRecord.vue'
import type { TabsPaneContext } from 'element-plus'
import { formatDate } from '@/utils/formatTime'
const message = useMessage() // 消息弹窗
//const { t } = useI18n() // 国际化
const { t } = useI18n() // 国际化
const loading = ref(true) // 列表的加载中
const total = ref(0) // 列表的总页数
@@ -198,9 +198,8 @@ const handleDelete = async (id: number) => {
await message.delConfirm()
// 发起删除
await StoreOrderApi.deleteStoreOrder(id)
message.success(t('common.delSuccess'))
// 刷新列表
await getList()
getList()
} catch {}
}
@@ -29,7 +29,7 @@
<el-form-item label="商品分类" prop="cate_id">
<el-select
v-model="formValidate.cate_id"
placeholder="选择店铺"
placeholder="选择分类"
@change="selectShop"
>
<el-option