zhaolf 3 years ago
parent
commit
a7eed9a727
2 changed files with 4 additions and 14 deletions
  1. 0 12
      src/App.vue
  2. 4 2
      src/pages/goods/index.vue

+ 0 - 12
src/App.vue

@@ -73,18 +73,6 @@
         if (to.meta.keepAlive) {
           !this.include.includes(to.name) && this.include.push(to.name);
         }
-        // if (to.meta.parentNode && to.meta.parentNode.indexOf(from.name) > -1) {
-        //   !this.include.includes(from.name) && this.include.push(from.name);
-        // } else if (from.meta.parentNode && from.meta.parentNode.indexOf(to.name) > -1) {} else {
-        //   if (from.meta.parentNode) {
-        //     var index = this.include.indexOf(from.meta.parentNode);
-        //     index !== -1 && this.include.splice(index, 1);
-        //   }
-        //   if (!from.meta.parentNode) {
-        //     var index = this.include.indexOf(from.name);
-        //     index !== -1 && this.include.splice(index, 1);
-        //   }
-        // }
         // 标签页
         if (to.name != 'login') {
           this.menuDatas.forEach(element => {

+ 4 - 2
src/pages/goods/index.vue

@@ -68,13 +68,15 @@
             label: '价格',
             prop: 'sale_price',
             isShow: true,
-            sortable: true
+            sortable: true,
+            width: 120,
           },
           {
             label: '库存',
             prop: 'stock_num',
             isShow: true,
-            sortable: true
+            sortable: true,
+            width: 120,
           },
           {
             label: '审核状态',