From bf92e7e45ac5ee346df15c8a657d6fc690a335dd Mon Sep 17 00:00:00 2001 From: yanglbme Date: Sun, 3 May 2020 08:51:09 +0800 Subject: [PATCH] fix: remove redundant code --- src/api/fetch.js | 3 +-- src/scripts/converter.js | 1 - tests/unit/example.spec.js | 6 ------ 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 tests/unit/example.spec.js diff --git a/src/api/fetch.js b/src/api/fetch.js index eae069c..1cdbd14 100644 --- a/src/api/fetch.js +++ b/src/api/fetch.js @@ -22,9 +22,8 @@ service.interceptors.request.use( service.interceptors.response.use(res => { if (res.data.success) { return res.data; - } else { - console.log(res); } + console.log(res); return Promise.reject(res.data); }, error => Promise.reject(error)); diff --git a/src/scripts/converter.js b/src/scripts/converter.js index 5b25c13..0f52083 100644 --- a/src/scripts/converter.js +++ b/src/scripts/converter.js @@ -24,6 +24,5 @@ export function solveHtml() { preserveImportant: true } ); -// console.log(res); return res; } diff --git a/tests/unit/example.spec.js b/tests/unit/example.spec.js deleted file mode 100644 index 71f5d50..0000000 --- a/tests/unit/example.spec.js +++ /dev/null @@ -1,6 +0,0 @@ -import { shallowMount } from '@vue/test-utils' -import HelloWorld from '@/components/HelloWorld.vue' - -describe('HelloWorld.vue', () => { - -})