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,大功告成
但是還是只能在新頁面打開,彈窗的不知道咋寫,希望有大佬幫忙優(yōu)化一下或者 等官方更新
不急的可以等官方更新
急的,又不會改的,先用簡易版的
原理:復(fù)制商品編輯頁面,把不該要的代碼刪除即可
適用版本:標(biāo)準(zhǔn)版4.6.0