|
@@ -6,7 +6,9 @@ const state = {
|
|
|
tabIndex:0, //tab页的坐标
|
|
|
outProductId:0,//商品详情id
|
|
|
category_info_id:0,//类目详情id
|
|
|
- brand_info_id:0,//品牌详情id
|
|
|
+ brand_info_id:0,//品牌详情id
|
|
|
+ goodsid:0,//审核中商品id
|
|
|
+ isdisable:false//审核中商品编辑状态
|
|
|
}
|
|
|
const getters = {
|
|
|
getToken: state => state.token,
|
|
@@ -16,9 +18,17 @@ const getters = {
|
|
|
getTabIndex:state=>state.tabIndex,
|
|
|
getOutProductId:state=>state.outProductId,
|
|
|
getCategory_info_id:state=>state.category_info_id,
|
|
|
- getBrand_info_id:state=>state.brand_info_id
|
|
|
+ getBrand_info_id:state=>state.brand_info_id,
|
|
|
+ getGoodsId:state=>state.goodsid,
|
|
|
+ getIsDisable:state=>state.isdisable
|
|
|
}
|
|
|
const mutations = {
|
|
|
+ SET_GOODS_ID(state, goodsid) {
|
|
|
+ state.goodsid = goodsid
|
|
|
+ },
|
|
|
+ SET_ISDISABLE(state, isdisable) {
|
|
|
+ state.isdisable = isdisable
|
|
|
+ },
|
|
|
SET_USER_TOKEN(state, token) {
|
|
|
state.token = token
|
|
|
},
|