bug修改

master
mabo 2021-05-17 10:34:54 +08:00
parent cd86e1de22
commit 9df8a753d4
4 changed files with 10 additions and 9 deletions

View File

@ -11,7 +11,7 @@ export default new Vuex.Store({
state: { state: {
category: [], // 全部分类 category: [], // 全部分类
navList: [], navList: [],
cartNum: storage.getItem('cartNum') || 0 cartNum: storage.getItem('userInfo') ? storage.getItem('cartNum') : 0
}, },
getters, getters,
actions, actions,

View File

@ -405,7 +405,7 @@ export const result = [
type: 0, type: 0,
title: "满额活动", title: "满额活动",
path: "full-cut", path: "full-cut",
component: "promotion/fullCut/full-cut", component: "promotion/fullCut/fullCut",
icon: "md-person", icon: "md-person",
isMenu: true, isMenu: true,
url: "", url: "",

View File

@ -115,12 +115,12 @@ export const otherRouter = {
component: () => component: () =>
import("@/views/order/after-order/reurnGoodsOrderDetail.vue") import("@/views/order/after-order/reurnGoodsOrderDetail.vue")
}, },
{ // {
path: "full-cut-detail", // path: "full-cut-detail",
title: "添加满额活动", // title: "添加满额活动",
name: "full-cut-detail", // name: "full-cut-detail",
component: () => import("@/views/promotion/fullCut/newFullCut.vue") // component: () => import("@/views/promotion/fullCut/newFullCut.vue")
}, // },
{ {
path: "order-detail", path: "order-detail",
title: "订单详情", title: "订单详情",

View File

@ -111,6 +111,7 @@
<script> <script>
import { getFullDiscountList, delFullDiscount } from "@/api/promotion.js"; import { getFullDiscountList, delFullDiscount } from "@/api/promotion.js";
export default { export default {
name: 'full-cut',
data() { data() {
return { return {
loading: false, // loading: false, //
@ -256,7 +257,7 @@ export default {
}); });
}, },
}, },
activated() { activated () {
this.init(); this.init();
} }
}; };