Browse Source

🐞 fix: 修复商品编辑页面乐跑次数不加载的问题

Pchen. 10 months ago
parent
commit
8ad696f2fe
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/pages/admin/goods/addGoods.vue

+ 2 - 1
src/pages/admin/goods/addGoods.vue

@@ -136,10 +136,11 @@ const getGoodsDetail = async () => {
                 title: '获取商品信息失败!',
                 title: '获取商品信息失败!',
                 content: res?.msg ?? '请稍后再试'
                 content: res?.msg ?? '请稍后再试'
             })
             })
-        const { name, price, num, content, state } = res.data
+        const { name, price, num, content, state, lepao_count } = res.data
         form.content = decodeURI(atob(content))
         form.content = decodeURI(atob(content))
         form.name = name
         form.name = name
         form.price = Number(price)
         form.price = Number(price)
+        form.lepao_count = lepao_count
         form.num = num
         form.num = num
         form.state = state
         form.state = state
     } catch (error) {
     } catch (error) {