1、用我提供的附件解压到src\pages\product目录
2、打开src/router/modules/product.js文件
在56行回车添加
{
path: 'daa_product/:id?',
name: `${pre}productDaa`,
meta: {
auth: ['admin-store-storeProuduct-index'],
title: '快速编辑',
},
component: () => import('@/pages/product/productDaa'),
},
上方那行代码
3、打开src/pages/product/productList/index.vue
在121行回车添加
<a @click="editi(row)">快速编辑</a>
<Divider type="vertical" />
在890行回车添加
// 编辑
editi(row) {
this.$router.push({ path: '/admin/product/daa_product/' + row.id });
},
OK,大功告成
但是还是只能在新页面打开,弹窗的不知道咋写,希望有大佬帮忙优化一下或者 等官方更新
不急的可以等官方更新
急的,又不会改的,先用简易版的
原理:复制商品编辑页面,把不该要的代码删除即可
适用版本:标准版4.6.0