From 97bcecde6e059c6a5cf59546966c061a9c1245a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com> Date: Fri, 4 Jun 2021 11:23:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 2 +- src/api/monitor/visits.js | 1 - src/api/storeProductRule.js | 4 ++-- src/api/yxArticle.js | 1 - src/api/yxShippingTemplates.js | 6 +++--- src/api/yxUser.js | 1 - src/components/Dict/Dict.js | 2 +- src/router/routers.js | 2 +- 8 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.eslintignore b/.eslintignore index a1bbc96..0fb13a5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,6 +3,6 @@ src/assets public dist src/views - +src/components diff --git a/src/api/monitor/visits.js b/src/api/monitor/visits.js index d35f6b0..ecab8da 100644 --- a/src/api/monitor/visits.js +++ b/src/api/monitor/visits.js @@ -21,4 +21,3 @@ export function getChartData() { }) } - diff --git a/src/api/storeProductRule.js b/src/api/storeProductRule.js index 9a1642b..fd92b16 100644 --- a/src/api/storeProductRule.js +++ b/src/api/storeProductRule.js @@ -24,11 +24,11 @@ export function edit(data) { }) } -export function info (id) { +export function info(id) { return request({ url: `api/yxStoreProductRule/rule/${id}`, method: 'get' - }); + }) } export default { add, edit, del, info } diff --git a/src/api/yxArticle.js b/src/api/yxArticle.js index b09adf9..2aa2d6c 100644 --- a/src/api/yxArticle.js +++ b/src/api/yxArticle.js @@ -30,7 +30,6 @@ export function publish(id) { }) } - export function get(id) { return request({ url: 'api/yxArticle/info/' + id, diff --git a/src/api/yxShippingTemplates.js b/src/api/yxShippingTemplates.js index 1aa6ca2..5b0f8c9 100644 --- a/src/api/yxShippingTemplates.js +++ b/src/api/yxShippingTemplates.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -export function add(data,id) { +export function add(data, id) { return request({ url: `api/yxShippingTemplates/save/${id}`, method: 'post', @@ -28,7 +28,7 @@ export function getCity() { return request({ url: 'api/yxShippingTemplates/citys', method: 'get' - }); + }) } -export default { add, edit, del,getCity } +export default { add, edit, del, getCity } diff --git a/src/api/yxUser.js b/src/api/yxUser.js index 6817328..4a864e7 100644 --- a/src/api/yxUser.js +++ b/src/api/yxUser.js @@ -39,7 +39,6 @@ export function editp(data) { }) } - export function getSpread(data) { return request({ url: 'api/yxUser/spread', diff --git a/src/components/Dict/Dict.js b/src/components/Dict/Dict.js index cea1ff4..52165e8 100644 --- a/src/components/Dict/Dict.js +++ b/src/components/Dict/Dict.js @@ -7,7 +7,7 @@ export default class Dict { } async init(names, completeCallback) { - if (names === undefined || name === null) { + if (names === undefined) { throw new Error('need Dict names') } const ps = [] diff --git a/src/router/routers.js b/src/router/routers.js index 8b2a1d1..70c2921 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -67,7 +67,7 @@ export const constantRouterMap = [ }, component: (resolve) => require(['@/components/editorMaterial/index'], resolve), hidden: true - }, + } ] export default new Router({