浏览代码

过滤禁用

lrf402788946 5 年之前
父节点
当前提交
c413ba0c33
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      src/store/column.js
  2. 1 1
      src/store/menu.js
  3. 1 1
      src/store/module.js
  4. 1 1
      src/store/news.js

+ 1 - 1
src/store/column.js

@@ -27,7 +27,7 @@ export const actions = {
   async getColumn({ commit }, { type, data }) {
     let result;
     if (type === `list`) {
-      result = await this.$axios.$get(api.list, data);
+      result = await this.$axios.$get(api.list, { ...data, is_use: '0' });
     } else {
       let { id } = data;
       result = await this.$axios.$get(api.fetch(id));

+ 1 - 1
src/store/menu.js

@@ -12,7 +12,7 @@ export const actions = {
   async getMenu({ commit }, { type, data }) {
     let result;
     if (type === `list`) {
-      result = await this.$axios.$get(api.list, data);
+      result = await this.$axios.$get(api.list, { ...data, is_use: '0' });
     } else {
       let { id } = data;
       result = await this.$axios.$get(api.fetch(id));

+ 1 - 1
src/store/module.js

@@ -9,7 +9,7 @@ export const state = () => ({});
 export const mutations = {};
 export const actions = {
   async getModule({ commit }, { type, data }) {
-    let result = await this.$axios.$get(_.get(api, type), data);
+    let result = await this.$axios.$get(_.get(api, type), { ...data, is_use: '0' });
     return result;
   },
 };

+ 1 - 1
src/store/news.js

@@ -44,7 +44,7 @@ export const actions = {
   async getNews({ commit }, { type, data }) {
     let result;
     if (type !== 'fetch') {
-      result = await this.$axios.$get(api.bugList, data);
+      result = await this.$axios.$get(api.bugList, { ...data, is_use: '0' });
     } else {
       let { id } = data;
       result = await this.$axios.$get(api.fetch(id));